-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
np.array([pd.Series({'a':'a'})])
works but np.array([pd.Series({1:1})])
doesn't
#38543
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
Can you show the output of |
I can't reproduce this on v1.1.5 |
Sorry, pandas : 1.1.4 |
Thanks, can confirm this reproduces. If you upgrade pandas to 1.1.5 you'll find it fixed - it would be good to do a git bisect to figure out when this was fixed, and (if it was fixed accidentally) to add a test |
can't reproduce with 0.25.3, 1.0.5, 1.1.3, 1.1.4, 1.1.5, master (all envs using numpy 1.19+) |
Same, just tried in 1.1.4 with numpy 1.19.4 and it works fine. Conversely, on |
But is it an identified / reported upstream issue? |
Sure - @soerenwolfers do you feel like contributing a test for this issue? If so, please check the contributing guide |
Wow, there was an additional layer of confusion to unravel here :) (for myself). If there is only a single item in the dataframe, NumPy used to do use |
take |
Hi I'm not sure what to do now. I made a PR and did the changes requested, but when running the tests, it throws the Key error: 0 as stated in the beginning of this issue. |
The last line here throws a
KeyError: 0
Is that a bug?
The text was updated successfully, but these errors were encountered: