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
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
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
> #
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
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
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
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
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
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;\
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
10 matches
Mail list logo