You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
closes#13932
Author: agraboso <[email protected]>
Closes#13940 from agraboso/fix-13932 and squashes the following commits:
3fa7d25 [agraboso] Close open files in TextFileReader upon StopIteration
6592c73 [agraboso] Do not acquire list as file handler to close
7aa5184 [agraboso] Properly close opened files in XportReader and SAS7BDATReader
240383c [agraboso] Properly close opened files in two tests
52d1073 [agraboso] Fix linting error
39dcd99 [agraboso] Fix rebase
75fc34d [agraboso] Make try/except blocks in StataReader.read as small as possible
812e6ec [agraboso] Fix long line
c7e9c9c [agraboso] On close, CParserWrapper must call self._reader.close()
99e16dd [agraboso] Fix whatsnew entries
30b61e6 [agraboso] Properly close opened files in StataWriter
3b0f25f [agraboso] Properly close opened files in StataReader
1e39a5e [agraboso] Properly close opened files in three tests
d759156 [agraboso] BUG: properly close files opened by parsers
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.19.0.txt
+3
Original file line number
Diff line number
Diff line change
@@ -905,6 +905,9 @@ Bug Fixes
905
905
- Bug in ``pd.read_csv()`` that prevents ``usecols`` from being an empty set (:issue:`13402`)
906
906
- Bug in ``pd.read_csv()`` with ``engine='c'`` in which null ``quotechar`` was not accepted even though ``quoting`` was specified as ``None`` (:issue:`13411`)
907
907
- Bug in ``pd.read_csv()`` with ``engine='c'`` in which fields were not properly cast to float when quoting was specified as non-numeric (:issue:`13411`)
908
+
- Bug in ``pd.read_csv``, ``pd.read_table``, ``pd.read_fwf``, ``pd.read_stata`` and ``pd.read_sas`` where files were opened by parsers but not closed if both ``chunksize`` and ``iterator`` were ``None``. (:issue:`13940`)
909
+
- Bug in ``StataReader``, ``StataWriter``, ``XportReader`` and ``SAS7BDATReader`` where a file was not properly closed when an error was raised. (:issue:`13940`)
910
+
908
911
- Bug in ``pd.pivot_table()`` where ``margins_name`` is ignored when ``aggfunc`` is a list (:issue:`13354`)
909
912
- Bug in ``pd.Series.str.zfill``, ``center``, ``ljust``, ``rjust``, and ``pad`` when passing non-integers, did not raise ``TypeError`` (:issue:`13598`)
910
913
- Bug in checking for any null objects in a ``TimedeltaIndex``, which always returned ``True`` (:issue:`13603`)
0 commit comments