df.to_html display full output when using option to set display.max_colwidth #28218
Labels
Closing Candidate
May be closeable, needs more eyeballs
Docs
IO HTML
read_html, to_html, Styler.apply, Styler.applymap
Code Sample
Problem description
While we are working on issue #9690 and trying to reproduce the bug we found what could be a possible bug, when using
pd.set_option('display.max_colwidth', 10)
, we expectdf.to_html(escape=False, notebook=False)
to show truncated values, but this does not occurs.We already know that when using
notebook=True
the truncating occurs, but in our mind that to should working too whennotebook=False
. Should this be this way?Output
Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : 5f34933
python : 3.6.8.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-58-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : pt_BR.UTF-8
LOCALE : pt_BR.UTF-8
pandas : 0.25.0+258.g5f3493384
numpy : 1.16.2
pytz : 2018.3
dateutil : 2.8.0
pip : 9.0.1
setuptools : 40.8.0
Cython : 0.29.13
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.2.1
html5lib : 0.999999999
pymysql : None
psycopg2 : None
jinja2 : 2.10.1
IPython : 7.3.0
pandas_datareader: None
bs4 : 4.6.0
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.2.1
matplotlib : 3.0.2
numexpr : 2.6.4
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.2.1
sqlalchemy : None
tables : 3.4.2
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
The text was updated successfully, but these errors were encountered: