Skip to content
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

Cannot instantiate DataFrame with #491

Closed
craustin opened this issue Dec 14, 2011 · 1 comment
Closed

Cannot instantiate DataFrame with #491

craustin opened this issue Dec 14, 2011 · 1 comment
Labels
Milestone

Comments

@craustin
Copy link

from pandas import DataFrame
DataFrame([],[]) # DataFrame([]) does the same thing

pandas\core\frame.pyc in init(self, data, index, columns, dtype, copy)
208 copy=copy)
209 elif isinstance(data, list):
--> 210 if isinstance(data[0], (list, tuple)):
211 data, columns = _list_to_sdict(data, columns)
212 mgr = self._init_dict(data, index, columns, dtype=dtype)

IndexError: list index out of range

@wesm
Copy link
Member

wesm commented Dec 15, 2011

Well, this sucks but better to identify holes in the test suite. Fixed in the above commit

@wesm wesm closed this as completed Dec 15, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants