Skip to content

Commit

Permalink
Allow errors keyword for HDF IO Encoding Err Handling (#20873)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored and TomAugspurger committed May 1, 2018
1 parent 926f241 commit ade293d
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 37 deletions.
1 change: 1 addition & 0 deletions doc/source/whatsnew/v0.23.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ Other Enhancements
- Updated :meth:`DataFrame.to_gbq` and :meth:`pandas.read_gbq` signature and documentation to reflect changes from
the Pandas-GBQ library version 0.4.0. Adds intersphinx mapping to Pandas-GBQ
library. (:issue:`20564`)
- :func:`to_hdf` and :func:`read_hdf` now accept an ``errors`` keyword argument to control encoding error handling (:issue:`20835`)

.. _whatsnew_0230.api_breaking:

Expand Down
4 changes: 4 additions & 0 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1946,6 +1946,10 @@ def to_hdf(self, path_or_buf, key, **kwargs):
If applying compression use the fletcher32 checksum.
dropna : bool, default False
If true, ALL nan rows will not be written to store.
errors : str, default 'strict'
Specifies how encoding and decoding errors are to be handled.
See the errors argument for :func:`open` for a full list
of options.
See Also
--------
Expand Down
Loading

0 comments on commit ade293d

Please sign in to comment.