From c18ea718309b1cf824db505dabafd1bc7d4b5488 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Thu, 5 May 2022 14:23:53 -0700 Subject: [PATCH] CI/DOC: Fix to_hdf docstring validation --- pandas/core/generic.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c7013cb95f670..e1459a66a0f12 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2601,11 +2601,6 @@ def to_hdf( followed by fallback to "fixed". index : bool, default True Write DataFrame index as a column. - 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. - encoding : str, default "UTF-8" min_itemsize : dict or int, optional Map column names to minimum string sizes for columns. nan_rep : Any, optional @@ -2616,8 +2611,15 @@ def to_hdf( data_columns : list of columns or True, optional List of columns to create as indexed data columns for on-disk queries, or True to use all columns. By default only the axes - of the object are indexed. See :ref:`io.hdf5-query-data-columns`. + of the object are indexed. See + :ref:`Query via data columns`. for + more information. Applicable only to format='table'. + 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. + encoding : str, default "UTF-8" See Also --------