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
REF/BUG/TYP: read_csv shouldn't close user-provided file handles (#36997)
* BUG/REF: read_csv shouldn't close user-provided file handles
* get_handle: typing, returns is_wrapped, use dataclass, and make sure that all created handlers are returned
* remove unused imports
* added IOHandleArgs.close
* added IOArgs.close
* mostly comments
* move memory_map from TextReader to CParserWrapper
* moved IOArgs and IOHandles
* more comments
Co-authored-by: Jeff Reback <[email protected]>
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v1.2.0.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -498,6 +498,7 @@ I/O
498
498
- Bug in output rendering of complex numbers showing too many trailing zeros (:issue:`36799`)
499
499
- Bug in :class:`HDFStore` threw a ``TypeError`` when exporting an empty :class:`DataFrame` with ``datetime64[ns, tz]`` dtypes with a fixed HDF5 store (:issue:`20594`)
500
500
- Bug in :class:`HDFStore` was dropping timezone information when exporting :class:`Series` with ``datetime64[ns, tz]`` dtypes with a fixed HDF5 store (:issue:`20594`)
501
+
- :func:`read_csv` was closing user-provided binary file handles when ``engine="c"`` and an ``encoding`` was requested (:issue:`36980`)
501
502
- Bug in :meth:`DataFrame.to_hdf` was not dropping missing rows with ``dropna=True`` (:issue:`35719`)
0 commit comments