Skip to content

Commit 57fa141

Browse files
authored
Merge branch 'main' into issue57049
2 parents 5d430a7 + 48b1571 commit 57fa141

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

doc/source/user_guide/window.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ which will first group the data by the specified keys and then perform a windowi
7070

7171
Some windowing aggregation, ``mean``, ``sum``, ``var`` and ``std`` methods may suffer from numerical
7272
imprecision due to the underlying windowing algorithms accumulating sums. When values differ
73-
with magnitude :math:`1/np.finfo(np.double).eps` this results in truncation. It must be
73+
with magnitude ``1/np.finfo(np.double).eps`` (approximately :math:`4.5 \times 10^{15}`),
74+
this results in truncation. It must be
7475
noted, that large values may have an impact on windows, which do not include these values. `Kahan summation
7576
<https://en.wikipedia.org/wiki/Kahan_summation_algorithm>`__ is used
7677
to compute the rolling sums to preserve accuracy as much as possible.

pandas/core/series.py

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4651,7 +4651,7 @@ def rename(
46514651
inplace: Literal[True],
46524652
level: Level | None = ...,
46534653
errors: IgnoreRaise = ...,
4654-
) -> None: ...
4654+
) -> Series | None: ...
46554655

46564656
@overload
46574657
def rename(
@@ -4665,18 +4665,6 @@ def rename(
46654665
errors: IgnoreRaise = ...,
46664666
) -> Series: ...
46674667

4668-
@overload
4669-
def rename(
4670-
self,
4671-
index: Renamer | Hashable | None = ...,
4672-
*,
4673-
axis: Axis | None = ...,
4674-
copy: bool | lib.NoDefault = ...,
4675-
inplace: bool = ...,
4676-
level: Level | None = ...,
4677-
errors: IgnoreRaise = ...,
4678-
) -> Series | None: ...
4679-
46804668
def rename(
46814669
self,
46824670
index: Renamer | Hashable | None = None,
@@ -4734,8 +4722,9 @@ def rename(
47344722
47354723
Returns
47364724
-------
4737-
Series or None
4738-
Series with index labels or name altered or None if ``inplace=True``.
4725+
Series
4726+
A shallow copy with index labels or name altered, or the same object
4727+
if ``inplace=True`` and index is not a dict or callable else None.
47394728
47404729
See Also
47414730
--------

pandas/io/formats/style.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ class Styler(StylerRenderer):
187187
188188
Attributes
189189
----------
190+
index : data.index Index
191+
columns : data.columns Index
190192
env : Jinja2 jinja2.Environment
191193
template_html : Jinja2 Template
192194
template_html_table : Jinja2 Template

0 commit comments

Comments
 (0)