-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Unit Test: Construction of DataFrame works with empty list but not empty array #47192
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is as intended, so i don't think we want to change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weikhor instead could you just write a unit test pandas.DataFrame(data=numpy.array([]), columns=['a','b'])
raises an exception cementing this behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks LGTM. Needs @jreback approval to merge
thanks @weikhor |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.