-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: pd.read_hdf leaves files open if it raises an IndexError exception #52781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
graingert
added a commit
to graingert/pandas
that referenced
this issue
Apr 19, 2023
5 tasks
graingert
added a commit
to graingert/pandas
that referenced
this issue
Apr 19, 2023
graingert
added a commit
to graingert/dask
that referenced
this issue
Apr 19, 2023
closes dask#10204 this is a performance optimization that also bypasses the pandas bug pandas-dev/pandas#52781
3 tasks
graingert
added a commit
to graingert/pandas
that referenced
this issue
Apr 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Issue Description
this prints
Closing remaining open files:/tmp/tmp3yi3ev9z/data.h5...done
Expected Behavior
should print nothing
Installed Versions
INSTALLED VERSIONS
commit : 478d340
python : 3.11.3.final.0
python-bits : 64
OS : Linux
OS-release : 5.19.0-38-generic
Version : #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 2.0.0
numpy : 1.24.2
pytz : 2023.3
dateutil : 2.8.2
setuptools : 67.6.1
pip : 23.1
Cython : None
pytest : 7.3.1
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.12.0
pandas_datareader: None
bs4 : None
bottleneck : None
brotli :
fastparquet : 2023.2.0
fsspec : 2023.4.0
gcsfs : None
matplotlib : None
numba : None
numexpr : 2.8.4
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 11.0.0
pyreadstat : None
pyxlsb : None
s3fs : 2023.4.0
scipy : 1.10.1
snappy :
sqlalchemy : 1.4.46
tables : 3.8.0
tabulate : None
xarray : 2023.4.1
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: