Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
DataFrame.from_records() KeyError when passed empty list #2633
Comments
|
Agreed. Thanks |
|
Which version are you on? This seems to work ok on master:
|
pikeas
commented
Jan 5, 2013
Looks like I was inaccurate about the error message thrown. The above throws an IndexError. Version 0.10.0. |
wesm
was assigned
Jan 19, 2013
wesm
closed this
in dd439c9
Jan 19, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pikeas commentedJan 4, 2013
What it says on the tin. from_records() fails with a KeyError if passed an empty list. If the list is empty, an empty DataFrame should be created, conforming to the other arguments (columns, etc).