-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: lib.infer_type broken for IntervalArray / PeriodArray #23553
Comments
While technically not a regression for us (regression means that it broke in the most recent release but was working in the one before that), this should be "restored" to what it was before we release A |
Not that I want to discuss semantics too much, but this is for sure a regression :) |
I am not very familiar with the |
What's the expected dtype for >>> lib.infer_dtype(integer_array([1, np.nan])) Should we basically expect cc @jreback I suspect you're the most familiar with this. |
so for this example we would return Int64 (because it’s an actual array) but for a list i would expect the same as now (mixed integer float) |
Would you say |
i think we could eventually add those |
milestone ping pong, haha. ;-) Would this still be acceptable during RC phase? I might be able to make some time. |
While working on #23167, I found a regression in IntervalArray / PeriodArray - I'm guessing it's related to the whole EA effort. @jorisvandenbossche @TomAugspurger
This was still working in
v0.23.4
:This is due to the fact that
lib.infer_dtype
triesvalues = getattr(value, '_values', getattr(value, 'values', value))
and both
IntervalArray
/PeriodArray
do not return a numpy array for_values
anymore. ForPeriodArray
, it would work if_values
andvalues
were switched, but forIntervalArray
, both_values
andvalues
return the same (non-numpy-array) result.The text was updated successfully, but these errors were encountered: