Skip to content

Commit 4cb55a4

Browse files
committed
DOC: adjusted the grammer in DataFrame.assign docstring.
1 parent 1fa9bc5 commit 4cb55a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3220,7 +3220,7 @@ def assign(self, **kwargs):
32203220
32213221
Parameters
32223222
----------
3223-
**kwargs : dict of {str: callable or series}
3223+
**kwargs : dict of {str: callable or Series}
32243224
The column names are keywords. If the values are
32253225
callable, they are computed on the DataFrame and
32263226
assigned to the new columns. The callable must not
@@ -3264,7 +3264,7 @@ def assign(self, **kwargs):
32643264
Berkeley 25.0 77.0
32653265
32663266
Alternatively, the same behavior can be achieved by directly
3267-
referencing an existing Series or list-like:
3267+
referencing an existing Series or sequence:
32683268
>>> df.assign(temp_f=df['temp_c'] * 9 / 5 + 32)
32693269
temp_c temp_f
32703270
Portland 17.0 62.6

0 commit comments

Comments
 (0)