-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEPR: DTA/TDA.__init__ #55623
Comments
I was just planning to start using this as public alternative for DatetimeTZBlock: apache/arrow#38321 What would be the alternative?
|
_from_sequence with i8s
|
That's a worse alternative? Not in perf, I mean, but in what the user needs to do: need to pass integers instead of datetime64, and need to use a semi-private method (EA authors should implement that, but other downstream code shouldn't use that IMO) |
The semi-privateness is weird, but ATM it is the main constructor for general EAs.
That's the same behavior you get with DatetimeIndex. We decided (and went through a deprecation cycle) that passing dt64s and a pd.DatetimeTZDtype would interpret the values as wall-times, while i8s would be interpreted as utc times. If anything, having different (and AFAIK not documented) behavior in Is your concern about end users or mostly about library authors? I expect basically no actual end users are using this directly. |
I would say the main general constructor is
|
Ah, because it copies by default. With disabling that it is fine:
|
I'm finding myself having to fix bugs in these, but they don't really serve much purpose. We should just use _from_sequence instead. Would need to deprecate bc IIUC fastparquet uses these.
The text was updated successfully, but these errors were encountered: