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

Series __repr__ Exception when series hold DataFrames #1749

Closed
lodagro opened this issue Aug 9, 2012 · 0 comments
Closed

Series __repr__ Exception when series hold DataFrames #1749

lodagro opened this issue Aug 9, 2012 · 0 comments
Labels
Milestone

Comments

@lodagro
Copy link
Contributor

lodagro commented Aug 9, 2012

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 as completed in c030198 Aug 12, 2012
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