Skip to content

Loading…

Series __repr__ Exception when series hold DataFrames #1749

Closed
lodagro opened this Issue · 0 comments

2 participants

@lodagro
Python for Data member

from stackoverflow

In [67]: s = pandas.Series([pandas.DataFrame(np.random.randn(2,2)) for i in range(5)])

In [68]: s
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Exception ValueError: ValueError('Cannot call bool() on DataFrame.',) in 'util._checknull' ignored
Out[68]:
0              0         1
0  1.821894 -1.268104
1  0.
1              0         1
0 -1.361116  0.809527
1 -0.
2              0         1
0  0.603496  0.034081
1 -0.
3              0         1
0 -0.274753 -0.544456
1  0.
4              0         1
0 -0.699664  0.366191
1 -0.
@wesm wesm closed this in c030198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.