Skip to content

Commit 5dc0251

Browse files
wjandreaKevsterAmp
authored andcommitted
DOC: Fix "kwargs" description for .assign() (pandas-dev#60588)
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 4df1ad1 commit 5dc0251

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)