Skip to content

Commit 9b89631

Browse files
Move errors keyword argument after encoding keyword argument (similar to open())
1 parent 8bdea9a commit 9b89631

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
@@ -2355,8 +2355,8 @@ def to_hdf(
23552355
nan_rep=None,
23562356
dropna: Optional[bool_t] = None,
23572357
data_columns: Optional[List[str]] = None,
2358-
errors: str = "strict",
23592358
encoding: str = "UTF-8",
2359+
errors: str = "strict",
23602360
) -> None:
23612361
"""
23622362
Write the contained data to an HDF5 file using HDFStore.
@@ -2408,11 +2408,11 @@ def to_hdf(
24082408
like searching / selecting subsets of the data.
24092409
- If None, pd.get_option('io.hdf.default_format') is checked,
24102410
followed by fallback to "fixed"
2411+
encoding : str, default "UTF-8"
24112412
errors : str, default 'strict'
24122413
Specifies how encoding and decoding errors are to be handled.
24132414
See the errors argument for :func:`open` for a full list
24142415
of options.
2415-
encoding : str, default "UTF-8"
24162416
min_itemsize : dict or int, optional
24172417
Map column names to minimum string sizes for columns.
24182418
nan_rep : Any, optional

0 commit comments

Comments
 (0)