Re: Pandas printing in jupyter

2018-01-16 Thread Rustom Mody
On Tuesday, January 16, 2018 at 6:04:06 PM UTC+5:30, Rustom Mody wrote: Had missed the mtd element ie changing elemfmt = """%d """ to elemfmt = """%d """ -- https://mail.python.org/mailman/listinfo/python-list

Re: Pandas printing in jupyter

2018-01-16 Thread Rustom Mody
On Tuesday, January 16, 2018 at 5:10:14 PM UTC+5:30, Rustom Mody wrote: > On Sunday, January 14, 2018 at 3:28:02 AM UTC+5:30, bo...@questa.la.so wrote: > > Rustom Mody writes: > > > > > Specifically and for starters, I want a numpy array — lets say 2D to > > > start with — to be displayed(display

Re: Pandas printing in jupyter

2018-01-16 Thread Rustom Mody
On Sunday, January 14, 2018 at 3:28:02 AM UTC+5:30, bo...@questa.la.so wrote: > Rustom Mody writes: > > > Specifically and for starters, I want a numpy array — lets say 2D to > > start with — to be displayed(displayable) as elegantly as sympy does > > to (its) matrices > #

Re: Pandas printing in jupyter

2018-01-13 Thread boffi
bo...@questa.la.so writes: > def prmat(mat): > return (r'\begin{bmatrix}' + > r'\\'.join('&'.join('%f'%x for x in row) for row in mat) + > r'\end{bmatrix}' add a closing parenthesis here ^ -- https://mail.python.org/mailman/listinfo/python-list

Re: Pandas printing in jupyter

2018-01-13 Thread boffi
Rustom Mody writes: > Specifically and for starters, I want a numpy array — lets say 2D to > start with — to be displayed(displayable) as elegantly as sympy does > to (its) matrices import numpy as np from IPython.display im

Re: Pandas printing in jupyter

2018-01-11 Thread Rustom Mody
On Thursday, January 11, 2018 at 2:49:27 PM UTC+5:30, Thomas Jollans wrote: > On 2018-01-11 09:59, Rustom Mody wrote: > > On Thursday, January 11, 2018 at 2:13:46 PM UTC+5:30, Paul Moore wrote: > >> The HTML representation is supplied by the object's _repr_html_ > >> method. See https://ipython.or

Re: Pandas printing in jupyter

2018-01-11 Thread Thomas Jollans
On 2018-01-11 09:59, Rustom Mody wrote: > On Thursday, January 11, 2018 at 2:13:46 PM UTC+5:30, Paul Moore wrote: >> The HTML representation is supplied by the object's _repr_html_ >> method. See https://ipython.org/ipython-doc/3/config/integrating.html >> for some details. >> > import pandas

Re: Pandas printing in jupyter

2018-01-11 Thread Rustom Mody
On Thursday, January 11, 2018 at 2:13:46 PM UTC+5:30, Paul Moore wrote: > The HTML representation is supplied by the object's _repr_html_ > method. See https://ipython.org/ipython-doc/3/config/integrating.html > for some details. > > >>> import pandas as pd > >>> df = pd.DataFrame() > >>> df._rep

Re: Pandas printing in jupyter

2018-01-11 Thread Paul Moore
The HTML representation is supplied by the object's _repr_html_ method. See https://ipython.org/ipython-doc/3/config/integrating.html for some details. >>> import pandas as pd >>> df = pd.DataFrame() >>> df._repr_html_() '\n\n.dataframe tbody tr th:only-of-type {\n vertical-align: middle;\

Pandas printing in jupyter

2018-01-10 Thread Rustom Mody
If I make a data-frame in pandas in jupyter notebook it prints very nicely ie it looks quite like a spreadsheet How does it do it? Who does it? The data-frame does not seem to have str/repr methods… -- https://mail.python.org/mailman/listinfo/python-list