Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Fix description of skipna parameter in groupby reductions #60842

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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