wesm/pandas — Issue #293: DataFrame constructor fails on list of tuples
Author: lodagro
Created: 2011-10-26 13:52:34+00:00
State: open

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)