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

DataFrame constructor fails on list of tuples #293

Closed
lodagro opened this issue Oct 26, 2011 · 1 comment
Closed

DataFrame constructor fails on list of tuples #293

lodagro opened this issue Oct 26, 2011 · 1 comment
Labels
Milestone

Comments

@lodagro
Copy link
Contributor

lodagro commented Oct 26, 2011

In [93]: pandas.version
Out[0]: '0.5.0'

In [94]: df = pandas.DataFrame({'A': [(1, 2)]})


AssertionError Traceback (most recent call last)

< .. snip ... >

The latter fails, however the following works fine:

In [95]: s = pandas.Series([(1, 2)]) ---> this was fixed in issue #270

In [96]: df = pandas.DataFrame({'A': s})

In [97]: s
Out[0]:
0 (1, 2)
Name: None, Length: 1

In [98]: df
Out[0]:
A
0 (1, 2)

wesm added a commit that referenced this issue Nov 4, 2011
@wesm
Copy link
Member

wesm commented Nov 4, 2011

Fixed in the above commit

@wesm wesm closed this as completed Nov 4, 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