-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
API: Use object dtype for empty Series #17261
Labels
API Design
Constructors
Series/DataFrame/Index/pd.array Constructors
Dtype Conversions
Unexpected or buggy dtype conversions
Milestone
Comments
TomAugspurger
added
API Design
Difficulty Intermediate
Dtype Conversions
Unexpected or buggy dtype conversions
labels
Aug 15, 2017
xref #1783 |
This will potentially fix #16737 as well |
4 tasks
TomAugspurger
added a commit
to TomAugspurger/pandas
that referenced
this issue
Apr 23, 2018
4 tasks
4 tasks
Probably not getting to this for 0.24. |
Pushing again :/ Maybe forever at this point? |
I'm looking into this |
5 tasks
3 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
API Design
Constructors
Series/DataFrame/Index/pd.array Constructors
Dtype Conversions
Unexpected or buggy dtype conversions
Currently an empty
Series
has a float dtype:This is consistent with NumPy, but inconsistent with the rest of pandas:
I think it's best to just make all our containers treat empty as object dtype, unless explicitly told otherwise (excluding specialized containers like
Int64Index
).The text was updated successfully, but these errors were encountered: