Skip to content

DEPR: Enforce certain DataFrame reductions w/ axis=None to return scalars #50593

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

Merged
merged 7 commits into from
Jan 6, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Change some defaults
  • Loading branch information
mroeschke committed Jan 5, 2023
commit b10a599d9c918c41b45c80f58bbbaab76731f95e
8 changes: 4 additions & 4 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10886,7 +10886,7 @@ def _stat_function_ddof(
self,
name: str,
func,
axis: Axis | None = 0,
axis: Axis | None = None,
skipna: bool_t = True,
ddof: int = 1,
numeric_only: bool_t = False,
Expand All @@ -10903,7 +10903,7 @@ def _stat_function_ddof(

def sem(
self,
axis: Axis | None = 0,
axis: Axis | None = None,
skipna: bool_t = True,
ddof: int = 1,
numeric_only: bool_t = False,
Expand All @@ -10915,7 +10915,7 @@ def sem(

def var(
self,
axis: Axis | None = 0,
axis: Axis | None = None,
skipna: bool_t = True,
ddof: int = 1,
numeric_only: bool_t = False,
Expand All @@ -10927,7 +10927,7 @@ def var(

def std(
self,
axis: Axis | None = 0,
axis: Axis | None = None,
skipna: bool_t = True,
ddof: int = 1,
numeric_only: bool_t = False,
Expand Down