Skip to content

Commit 06226b9

Browse files
Update wording in docs
1 parent 5917b68 commit 06226b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/source/whatsnew/v1.2.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Deprecations
268268
- Deprecated :meth:`Index.is_all_dates` (:issue:`27744`)
269269
- Deprecated automatic alignment on comparison operations between :class:`DataFrame` and :class:`Series`, do ``frame, ser = frame.align(ser, axis=1, copy=False)`` before e.g. ``frame == ser`` (:issue:`28759`)
270270
- :meth:`Rolling.count` with ``min_periods=None`` will default to the size of the window in a future version (:issue:`31302`)
271-
- Deprecate use of strings denoting units with 'M', 'Y', 'm' and 'y' in :func:`~pandas.to_timedelta` (:issue:`36666`)
271+
- Deprecate use of strings denoting units with 'M', 'Y', 'm' or 'y' in :func:`~pandas.to_timedelta` (:issue:`36666`)
272272

273273
.. ---------------------------------------------------------------------------
274274

pandas/core/tools/timedeltas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def to_timedelta(arg, unit=None, errors="raise"):
2929
The data to be converted to timedelta.
3030
3131
.. deprecated:: 1.2
32-
Strings denoting units with 'M', 'Y', 'm' and 'y' do not represent
32+
Strings denoting units with 'M', 'Y', 'm' or 'y' do not represent
3333
unambiguous timedelta values durations and will removed in a future
3434
version
3535
@@ -129,7 +129,7 @@ def to_timedelta(arg, unit=None, errors="raise"):
129129
)
130130
elif arg.upper().endswith(" M") or arg.upper().endswith(" Y"):
131131
warnings.warn(
132-
"Denoting units with 'M', 'Y', 'm' and 'y' do not represent unambiguous"
132+
"Denoting units with 'M', 'Y', 'm' or 'y' do not represent unambiguous"
133133
" timedelta values durations and will removed in a future version",
134134
FutureWarning,
135135
stacklevel=2,

0 commit comments

Comments
 (0)