Skip to content

Commit

Permalink
DOC: Fix "kwargs" description for .assign() (#60588)
Browse files Browse the repository at this point in the history
Fix "kwargs" description for .assign()

"kwargs" isn't a dict; the keyword arguments are *converted* to a dict.
Secondly, keyword arguments are strings by definition.
  • Loading branch information
wjandrea authored Dec 18, 2024
1 parent edf00e9 commit 602ae10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5009,7 +5009,7 @@ def assign(self, **kwargs) -> DataFrame:
Parameters
----------
**kwargs : dict of {str: callable or Series}
**kwargs : callable or Series
The column names are keywords. If the values are
callable, they are computed on the DataFrame and
assigned to the new columns. The callable must not
Expand Down

0 comments on commit 602ae10

Please sign in to comment.