Skip to content

Commit f98ba05

Browse files
committed
minor textual changes
1 parent 4b365f6 commit f98ba05

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

doc/source/whatsnew/v1.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ Deprecations
781781
- The ``squeeze`` keyword in the ``groupby`` function is deprecated and will be removed in a future version (:issue:`32380`)
782782
- The ``tz`` keyword in :meth:`Period.to_timestamp` is deprecated and will be removed in a future version; use `per.to_timestamp(...).tz_localize(tz)`` instead (:issue:`34522`)
783783
- :meth:`DatetimeIndex.to_perioddelta` is deprecated and will be removed in a future version. Use ``index - index.to_period(freq).to_timestamp()`` instead (:issue:`34853`)
784-
- the ``center`` keyword in the :meth:`DataFrame.expanding` function is deprecated and will be removed in a future version (:issue:`20647`)
784+
- The ``center`` keyword in the :meth:`DataFrame.expanding` function is deprecated and will be removed in a future version (:issue:`20647`)
785785

786786
.. ---------------------------------------------------------------------------
787787

pandas/core/window/expanding.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ class Expanding(_Rolling_and_Expanding):
6161
def __init__(self, obj, min_periods=1, center=None, axis=0, **kwargs):
6262
if center is not None:
6363
warnings.warn(
64-
"""
65-
the `center` argument on `expanding` will be removed in the future.
66-
Please be aware that there are issues with its current implementation,
67-
and use it with caution
68-
(https://github.com/pandas-dev/pandas/issues/20647)""",
64+
"The `center` argument on `expanding` will be removed in the future",
6965
FutureWarning,
7066
stacklevel=3,
7167
)

0 commit comments

Comments
 (0)