Skip to content

Commit 1545ba2

Browse files
Move errors keyword argument after encoding keyword argument (similar to open())
1 parent 4864951 commit 1545ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,8 +2357,8 @@ def to_hdf(
23572357
nan_rep=None,
23582358
dropna: Optional[bool_t] = None,
23592359
data_columns: Optional[List[str]] = None,
2360-
errors: str = "strict",
23612360
encoding: str = "UTF-8",
2361+
errors: str = "strict",
23622362
) -> None:
23632363
"""
23642364
Write the contained data to an HDF5 file using HDFStore.
@@ -2410,11 +2410,11 @@ def to_hdf(
24102410
like searching / selecting subsets of the data.
24112411
- If None, pd.get_option('io.hdf.default_format') is checked,
24122412
followed by fallback to "fixed"
2413+
encoding : str, default "UTF-8"
24132414
errors : str, default 'strict'
24142415
Specifies how encoding and decoding errors are to be handled.
24152416
See the errors argument for :func:`open` for a full list
24162417
of options.
2417-
encoding : str, default "UTF-8"
24182418
min_itemsize : dict or int, optional
24192419
Map column names to minimum string sizes for columns.
24202420
nan_rep : Any, optional

0 commit comments

Comments
 (0)