Skip to content

Pretty table does not display #10

@J-A-M

Description

@J-A-M

If I generate a simple PrettyTable, instead of printing the table it prints its class instance e.g. "<itable.itable.PrettyTable at 0x7f9225161890>"

I get the same result in IPython qtconsole and notebook. Is there a display_pretty method or some magic I should do first?

e.g.
In [1]: import pandas
In [2]: %pylab inline
Populating the interactive namespace from numpy and matplotlib
In [3]: import itable
In [4]: df = pandas.DataFrame(range(10))
In [5]: df
Out[5]:
0
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9

[10 rows x 1 columns]

In [6]: pt = itable.PrettyTable(df)
In [7]: pt
Out[7]: <itable.itable.PrettyTable at 0x7f9225161890>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions