Skip to content

Commit 0127d06

Browse files
authored
DOC: Fix intendation of versionadded and typo (#51468)
1 parent b836a88 commit 0127d06

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4661,7 +4661,7 @@ def add_prefix(self: NDFrameT, prefix: str, axis: Axis | None = None) -> NDFrame
46614661
axis : {{0 or 'index', 1 or 'columns', None}}, default None
46624662
Axis to add prefix on
46634663
4664-
.. versionadded:: 2.0.0
4664+
.. versionadded:: 2.0.0
46654665
46664666
Returns
46674667
-------
@@ -4735,7 +4735,7 @@ def add_suffix(self: NDFrameT, suffix: str, axis: Axis | None = None) -> NDFrame
47354735
axis : {{0 or 'index', 1 or 'columns', None}}, default None
47364736
Axis to add suffix on
47374737
4738-
.. versionadded:: 2.0.0
4738+
.. versionadded:: 2.0.0
47394739
47404740
Returns
47414741
-------
@@ -7118,7 +7118,7 @@ def backfill(
71187118
71197119
.. deprecated:: 2.0
71207120
7121-
{klass}.backfill is deprecated. Use {klass}.backfill instead.
7121+
{klass}.backfill is deprecated. Use {klass}.bfill instead.
71227122
71237123
Returns
71247124
-------

pandas/io/excel/_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,15 @@
251251
more strings (corresponding to the columns defined by `parse_dates`) as
252252
arguments.
253253
254-
.. deprecated:: 2.0.0
255-
Use ``date_format`` instead, or read in as ``object`` and then apply
256-
:func:`to_datetime` as-needed.
254+
.. deprecated:: 2.0.0
255+
Use ``date_format`` instead, or read in as ``object`` and then apply
256+
:func:`to_datetime` as-needed.
257257
date_format : str or dict of column -> format, default ``None``
258258
If used in conjunction with ``parse_dates``, will parse dates according to this
259259
format. For anything more complex,
260260
please read in as ``object`` and then apply :func:`to_datetime` as-needed.
261261
262-
.. versionadded:: 2.0.0
262+
.. versionadded:: 2.0.0
263263
thousands : str, default None
264264
Thousands separator for parsing string columns to numeric. Note that
265265
this parameter is only necessary for columns stored as TEXT in Excel,

pandas/io/parquet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def read_parquet(
503503
``pd.set_option("mode.dtype_backend", "pyarrow")`` to use
504504
pyarrow-backed nullable dtypes (using ``pd.ArrowDtype``).
505505
506-
.. versionadded:: 2.0.0
506+
.. versionadded:: 2.0.0
507507
508508
**kwargs
509509
Any additional kwargs are passed to the engine.

pandas/io/parsers/readers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,15 @@
262262
more strings (corresponding to the columns defined by `parse_dates`) as
263263
arguments.
264264
265-
.. deprecated:: 2.0.0
266-
Use ``date_format`` instead, or read in as ``object`` and then apply
267-
:func:`to_datetime` as-needed.
265+
.. deprecated:: 2.0.0
266+
Use ``date_format`` instead, or read in as ``object`` and then apply
267+
:func:`to_datetime` as-needed.
268268
date_format : str or dict of column -> format, default ``None``
269269
If used in conjunction with ``parse_dates``, will parse dates according to this
270270
format. For anything more complex,
271271
please read in as ``object`` and then apply :func:`to_datetime` as-needed.
272272
273-
.. versionadded:: 2.0.0
273+
.. versionadded:: 2.0.0
274274
dayfirst : bool, default False
275275
DD/MM format dates, international and European format.
276276
cache_dates : bool, default True

0 commit comments

Comments
 (0)