Skip to content

Commit ade293d

Browse files
WillAydTomAugspurger
authored andcommitted
Allow errors keyword for HDF IO Encoding Err Handling (#20873)
1 parent 926f241 commit ade293d

File tree

4 files changed

+79
-37
lines changed

4 files changed

+79
-37
lines changed

doc/source/whatsnew/v0.23.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ Other Enhancements
503503
- Updated :meth:`DataFrame.to_gbq` and :meth:`pandas.read_gbq` signature and documentation to reflect changes from
504504
the Pandas-GBQ library version 0.4.0. Adds intersphinx mapping to Pandas-GBQ
505505
library. (:issue:`20564`)
506+
- :func:`to_hdf` and :func:`read_hdf` now accept an ``errors`` keyword argument to control encoding error handling (:issue:`20835`)
506507

507508
.. _whatsnew_0230.api_breaking:
508509

pandas/core/generic.py

+4
Original file line numberDiff line numberDiff line change
@@ -1946,6 +1946,10 @@ def to_hdf(self, path_or_buf, key, **kwargs):
19461946
If applying compression use the fletcher32 checksum.
19471947
dropna : bool, default False
19481948
If true, ALL nan rows will not be written to store.
1949+
errors : str, default 'strict'
1950+
Specifies how encoding and decoding errors are to be handled.
1951+
See the errors argument for :func:`open` for a full list
1952+
of options.
19491953
19501954
See Also
19511955
--------

0 commit comments

Comments
 (0)