Skip to content

Commit 6fba37d

Browse files
Revert change
1 parent 0ba9d14 commit 6fba37d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,8 +2368,8 @@ def to_hdf(
23682368
dropna: Optional[bool_t] = None,
23692369
data_columns: Optional[Union[bool_t, List[str]]] = None,
23702370
data_columns: Optional[List[str]] = None,
2371-
encoding: str = "UTF-8",
23722371
errors: str = "strict",
2372+
encoding: str = "UTF-8",
23732373
) -> None:
23742374
"""
23752375
Write the contained data to an HDF5 file using HDFStore.
@@ -2421,14 +2421,11 @@ def to_hdf(
24212421
like searching / selecting subsets of the data.
24222422
- If None, pd.get_option('io.hdf.default_format') is checked,
24232423
followed by fallback to "fixed"
2424-
encoding : str, default "UTF-8"
24252424
errors : str, default 'strict'
24262425
Specifies how encoding and decoding errors are to be handled.
24272426
See the errors argument for :func:`open` for a full list
24282427
of options.
2429-
2430-
.. versionadded:: 1.1.0
2431-
2428+
encoding : str, default "UTF-8"
24322429
min_itemsize : dict or int, optional
24332430
Map column names to minimum string sizes for columns.
24342431
nan_rep : Any, optional

0 commit comments

Comments
 (0)