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

DEPR: positional arguments in favor of keyword arguments #48735

Closed
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/source/whatsnew/v2.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ Other API changes

Deprecations
~~~~~~~~~~~~
-
-
- Deprecate behavior of :meth:`DataFrameGroupBy.fillna` and :meth:`SeriesGroupBy.fillna` allowing only keyword arguments to be passed except ``value`` (:issue:`48395`)


.. ---------------------------------------------------------------------------
.. _whatsnew_200.performance:
Expand Down
2 changes: 2 additions & 0 deletions pandas/core/groupby/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ def build_codes(lev_codes: np.ndarray) -> np.ndarray:
def fillna(
self,
value: object | ArrayLike | None = None,
*,
ambujpawar marked this conversation as resolved.
Show resolved Hide resolved
method: FillnaOptions | None = None,
axis: Axis | None = None,
inplace: bool = False,
Expand Down Expand Up @@ -2150,6 +2151,7 @@ def value_counts(
def fillna(
self,
value: Hashable | Mapping | Series | DataFrame = None,
*,
ambujpawar marked this conversation as resolved.
Show resolved Hide resolved
method: FillnaOptions | None = None,
axis: Axis | None = None,
inplace: bool = False,
Expand Down