diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 0369de8db1339..04b69a78dad42 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4661,7 +4661,7 @@ def add_prefix(self: NDFrameT, prefix: str, axis: Axis | None = None) -> NDFrame axis : {{0 or 'index', 1 or 'columns', None}}, default None Axis to add prefix on - .. versionadded:: 2.0.0 + .. versionadded:: 2.0.0 Returns ------- @@ -4735,7 +4735,7 @@ def add_suffix(self: NDFrameT, suffix: str, axis: Axis | None = None) -> NDFrame axis : {{0 or 'index', 1 or 'columns', None}}, default None Axis to add suffix on - .. versionadded:: 2.0.0 + .. versionadded:: 2.0.0 Returns ------- @@ -7118,7 +7118,7 @@ def backfill( .. deprecated:: 2.0 - {klass}.backfill is deprecated. Use {klass}.backfill instead. + {klass}.backfill is deprecated. Use {klass}.bfill instead. Returns ------- diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 4463dc5d672a9..1f66fd036a1c6 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -251,15 +251,15 @@ more strings (corresponding to the columns defined by `parse_dates`) as arguments. - .. deprecated:: 2.0.0 - Use ``date_format`` instead, or read in as ``object`` and then apply - :func:`to_datetime` as-needed. + .. deprecated:: 2.0.0 + Use ``date_format`` instead, or read in as ``object`` and then apply + :func:`to_datetime` as-needed. date_format : str or dict of column -> format, default ``None`` If used in conjunction with ``parse_dates``, will parse dates according to this format. For anything more complex, please read in as ``object`` and then apply :func:`to_datetime` as-needed. - .. versionadded:: 2.0.0 + .. versionadded:: 2.0.0 thousands : str, default None Thousands separator for parsing string columns to numeric. Note that this parameter is only necessary for columns stored as TEXT in Excel, diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 11706b671e1b1..aec31f40f8570 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -503,7 +503,7 @@ def read_parquet( ``pd.set_option("mode.dtype_backend", "pyarrow")`` to use pyarrow-backed nullable dtypes (using ``pd.ArrowDtype``). - .. versionadded:: 2.0.0 + .. versionadded:: 2.0.0 **kwargs Any additional kwargs are passed to the engine. diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index 92d0256c242d1..85e8dd6043fa5 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -262,15 +262,15 @@ more strings (corresponding to the columns defined by `parse_dates`) as arguments. - .. deprecated:: 2.0.0 - Use ``date_format`` instead, or read in as ``object`` and then apply - :func:`to_datetime` as-needed. + .. deprecated:: 2.0.0 + Use ``date_format`` instead, or read in as ``object`` and then apply + :func:`to_datetime` as-needed. date_format : str or dict of column -> format, default ``None`` If used in conjunction with ``parse_dates``, will parse dates according to this format. For anything more complex, please read in as ``object`` and then apply :func:`to_datetime` as-needed. - .. versionadded:: 2.0.0 + .. versionadded:: 2.0.0 dayfirst : bool, default False DD/MM format dates, international and European format. cache_dates : bool, default True