BUG: Large numbers are corrupted in display with hiding index df.style.hide(axis="index")
in v1.5.3
#56386
Closed
1 of 3 tasks
Labels
Closing Candidate
May be closeable, needs more eyeballs
Styler
conditional formatting using DataFrame.style
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas. The bug is not in the latest version
v2.1.3
, but major version upgrade from v1 to v2 is not always possible.I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
When displaying numbers while hiding index by
df.style.hide(axis="index")
, very large numbers could be corrupted in version v1.5.3
.2.1.3
, but major version upgrade is not always possible.2.0.3
as well.The output of the example in v
1.5.3
:Expected Behavior
The numbers shown with
df.style.hide(axis="index")
should be the actual value.Installed Versions
The problem is reproduced in a minimal environment with pandas 1.5.3:
INSTALLED VERSIONS
commit : 2e218d1
python : 3.10.13.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.22621
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : English_United States.1252
pandas : 1.5.3
numpy : 1.26.2
pytz : 2023.3.post1
dateutil : 2.8.2
setuptools : 68.2.2
pip : 23.3.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.18.1
pandas_datareader: None
bs4 : 4.12.2
bottleneck : None
brotli : None
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : None
snappy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
zstandard : None
tzdata : None
The text was updated successfully, but these errors were encountered: