-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Description
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.
-
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
When trying to build some new tests, I found a strange behavior.
- My apologies, but I can't simply have a copy/paste code answer as we can't export to
xlsb
andxlsm
directly in pandas if I'm not mistaken. - Data can be found with test environment in pandas\tests\io\data\excel
- A local copy : 07. Pandas tests.zip
import pandas as pd
from pathlib import Path
files = Path(".").glob("test1*")
files = list(files)
files
>>> [WindowsPath('test1.ods'),
>>> WindowsPath('test1.xls'),
>>> WindowsPath('test1.xlsb'),
>>> WindowsPath('test1.xlsm'),
>>> WindowsPath('test1.xlsx')]
for f in files:
print(f)
display(pd.read_excel(f))
Issue Description

Expected Behavior
All dataframes should be read the same
Installed Versions
pandas : 2.2.2
numpy : 2.0.2
pytz : 2024.2
dateutil : 2.9.0
setuptools : 75.1.0
pip : 24.2
Cython : None
pytest : 8.3.3
hypothesis : None
sphinx : 7.4.7
blosc : None
feather : None
xlsxwriter : 3.2.0
lxml.etree : 5.3.0
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 3.1.4
IPython : 8.21.0
pandas_datareader : None
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : 4.12.3
bottleneck : 1.4.0
dataframe-api-compat : None
fastparquet : None
fsspec : 2024.9.0
gcsfs : None
matplotlib : 3.9.1
numba : 0.60.0
numexpr : 2.10.0
odfpy : None
openpyxl : 3.1.5
pandas_gbq : None
pyarrow : 17.0.0
pyreadstat : None
python-calamine : None
pyxlsb : 1.0.10
s3fs : None
scipy : 1.14.1
sqlalchemy : None
tables : None
tabulate : 0.9.0
xarray : None
xlrd : 2.0.1
zstandard : 0.23.0
tzdata : 2024.2
qtpy : 2.4.1
pyqt5 : None