Skip to content

Commit e98030d

Browse files
authored
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.
1 parent edf00e9 commit e98030d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5009,7 +5009,7 @@ def assign(self, **kwargs) -> DataFrame:
50095009
50105010
Parameters
50115011
----------
5012-
**kwargs : dict of {str: callable or Series}
5012+
**kwargs : callable or Series
50135013
The column names are keywords. If the values are
50145014
callable, they are computed on the DataFrame and
50155015
assigned to the new columns. The callable must not

0 commit comments

Comments
 (0)