Skip to content

Commit

Permalink
DOC: Fix description of skipna parameter in groupby reductions
Browse files Browse the repository at this point in the history
  • Loading branch information
snitish committed Feb 3, 2025
1 parent e84a7f7 commit a238f51
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -2170,8 +2170,7 @@ def mean(
numeric_only no longer accepts ``None`` and defaults to ``False``.
skipna : bool, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA.
Exclude NA/null values. If an entire group is NA, the result will be NA.
.. versionadded:: 3.0.0
Expand Down Expand Up @@ -2271,8 +2270,7 @@ def median(self, numeric_only: bool = False, skipna: bool = True) -> NDFrameT:
numeric_only no longer accepts ``None`` and defaults to False.
skipna : bool, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA.
Exclude NA/null values. If an entire group is NA, the result will be NA.
.. versionadded:: 3.0.0
Expand Down Expand Up @@ -2405,8 +2403,7 @@ def std(
numeric_only now defaults to ``False``.
skipna : bool, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA.
Exclude NA/null values. If an entire group is NA, the result will be NA.
.. versionadded:: 3.0.0
Expand Down Expand Up @@ -2524,8 +2521,7 @@ def var(
numeric_only now defaults to ``False``.
skipna : bool, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA.
Exclude NA/null values. If an entire group is NA, the result will be NA.
.. versionadded:: 3.0.0
Expand Down Expand Up @@ -2742,8 +2738,7 @@ def sem(
numeric_only now defaults to ``False``.
skipna : bool, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA.
Exclude NA/null values. If an entire group is NA, the result will be NA.
.. versionadded:: 3.0.0
Expand Down Expand Up @@ -3021,8 +3016,7 @@ def prod(
than ``min_count`` non-NA values are present the result will be NA.
skipna : bool, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA.
Exclude NA/null values. If an entire group is NA, the result will be NA.
.. versionadded:: 3.0.0
Expand Down Expand Up @@ -3242,8 +3236,7 @@ def first(
The required number of valid values to perform the operation. If fewer
than ``min_count`` valid values are present the result will be NA.
skipna : bool, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA.
Exclude NA/null values. If an entire group is NA, the result will be NA.
.. versionadded:: 2.2.1
Expand Down Expand Up @@ -3329,8 +3322,7 @@ def last(
The required number of valid values to perform the operation. If fewer
than ``min_count`` valid values are present the result will be NA.
skipna : bool, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA.
Exclude NA/null values. If an entire group is NA, the result will be NA.
.. versionadded:: 2.2.1
Expand Down Expand Up @@ -5530,8 +5522,7 @@ def _idxmax_idxmin(
numeric_only : bool, default False
Include only float, int, boolean columns.
skipna : bool, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA.
Exclude NA/null values. If an entire group is NA, the result will be NA.
ignore_unobserved : bool, default False
When True and an unobserved group is encountered, do not raise. This used
for transform where unobserved groups do not play an impact on the result.
Expand Down

0 comments on commit a238f51

Please sign in to comment.