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>
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>