-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Unexpected to_dict output after upgrading to 0.24.1 #25408
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
Thanks for the report! We had a regression in This is another consequence of the usage of
You could say that the output |
take |
What if
? |
Code to illustrate 0.23.4 versus 0.24.1
pandas 0.23.4
pandas 0.24.1
Problem description
After upgrading to Pandas 0.24.1, the expected output when doing a
transpose
, followed by ato_dict
has changed. Before, an empty DataFrame was returning an empty list for each column (similar tovalues.tolist()
) e.g.'data': [[]. []]
. Now the output is'data': []
.Expected Output
Refer to code and output for
0.23.4
above.Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: