We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa9bc5 commit 4cb55a4Copy full SHA for 4cb55a4
pandas/core/frame.py
@@ -3220,7 +3220,7 @@ def assign(self, **kwargs):
3220
3221
Parameters
3222
----------
3223
- **kwargs : dict of {str: callable or series}
+ **kwargs : dict of {str: callable or Series}
3224
The column names are keywords. If the values are
3225
callable, they are computed on the DataFrame and
3226
assigned to the new columns. The callable must not
@@ -3264,7 +3264,7 @@ def assign(self, **kwargs):
3264
Berkeley 25.0 77.0
3265
3266
Alternatively, the same behavior can be achieved by directly
3267
- referencing an existing Series or list-like:
+ referencing an existing Series or sequence:
3268
>>> df.assign(temp_f=df['temp_c'] * 9 / 5 + 32)
3269
temp_c temp_f
3270
Portland 17.0 62.6
0 commit comments