Skip to content

BUG: "Bad CRC-32 for file'docProps/core.xml" for Read large Excel file  #59523

@ghz20040102

Description

@ghz20040102

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

import pandas as pd
........
df = pd.read_excel(file_path, sheet_name=sheet_name)
........

Issue Description

When I open an Excel file(.xlsx) with 300000 rows using pd.read_Excel, an error message appears: Bad CRC-32 for file'docProps/core.xml. But if the table has less than 1000 rows, it is normal to open the table with pd.read_excel.
pd.ExcelFile(file_path) has the same problem.
Why?

Expected Behavior

df = pd.read_excel(file_path, sheet_name=sheet_name)

Installed Versions

pd.show_versions()
INSTALLED VERSIONS

commit : 0f43794
python : 3.8.10.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.22621
machine : AMD64
processor : Intel64 Family 6 Model 186 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Chinese (Simplified)_China.936
pandas : 2.0.3
numpy : 1.24.4
pytz : 2024.1
dateutil : 2.9.0.post0
setuptools : 56.0.0
pip : 21.1.1
Cython : None
pytest : 8.1.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
brotli : None
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : 3.1.2
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
zstandard : None
tzdata : 2024.1
qtpy : None
pyqt5 : None

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIO Excelread_excel, to_excelNeeds InfoClarification about behavior needed to assess issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions