Skip to content

Commit 7c03df0

Browse files
Move errors keyword argument after encoding keyword argument (similar to open())
1 parent e7b7606 commit 7c03df0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2367,8 +2367,9 @@ def to_hdf(
23672367
nan_rep=None,
23682368
dropna: Optional[bool_t] = None,
23692369
data_columns: Optional[Union[bool_t, List[str]]] = None,
2370-
errors: str = "strict",
2370+
data_columns: Optional[List[str]] = None,
23712371
encoding: str = "UTF-8",
2372+
errors: str = "strict",
23722373
) -> None:
23732374
"""
23742375
Write the contained data to an HDF5 file using HDFStore.
@@ -2420,11 +2421,11 @@ def to_hdf(
24202421
like searching / selecting subsets of the data.
24212422
- If None, pd.get_option('io.hdf.default_format') is checked,
24222423
followed by fallback to "fixed"
2424+
encoding : str, default "UTF-8"
24232425
errors : str, default 'strict'
24242426
Specifies how encoding and decoding errors are to be handled.
24252427
See the errors argument for :func:`open` for a full list
24262428
of options.
2427-
encoding : str, default "UTF-8"
24282429
min_itemsize : dict or int, optional
24292430
Map column names to minimum string sizes for columns.
24302431
nan_rep : Any, optional

0 commit comments

Comments
 (0)