-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Improve error message when using DataFrame.from_items instead of DataFrame.from_records #17312
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
xref #4916 - not sure there are many usecases left where |
@chris-b1 can you open an issue for the deprecation. |
I've been looking at this issue and the problem seems to be that the value in each (key, value) pair should be an array or a Series as noted in the |
The problem is the user passed a dict, with keys that are all scalars; maybe meant to use a Series (or of course meant to pass values that are array-like)
I suppose the error message could be improved |
User reported from an early version of pandas, but this is still present in master:
The text was updated successfully, but these errors were encountered: