-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Series construction with EA dtype and index but no data fails #26469
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
Comments
This problem also manifests when doing an
The reason is that the Lines 3947 to 3950 in 2ae5152
I'm on pandas 0.24.2 |
@vanschelven interested in working on this? I think the fix is to call |
I'm willing to do some work on this, but setting up a full development environment for pandas is a bit much for me now. I've made a "shoot from the hip" (completely untested) PR #27475 with what I think could be the solution though. |
The problem with your suggestion is that at the moment of failure |
As evidenced from the PR's travis logs, that's not a solution, so I'm letting this rest for now |
Using master (0.25.0dev):
while this works fine for non-EA dtypes.
The problem is that the None / np.nan is eventually passed to the
_from_sequence
method, which expects a list-like. I don't think we should let people fix their_from_sequence
, but we should rather make sure we never pass that to it.The text was updated successfully, but these errors were encountered: