Skip to content
Prev Previous commit
Next Next commit
Edit pop docstring
  • Loading branch information
Daniel Saxton committed Jan 27, 2019
commit 7a9a3e90ebc0279946254dbd059bc2ca45edd34b
12 changes: 6 additions & 6 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,18 +763,18 @@ def pop(self, item):
Parameters
----------
item : str
Column label to be popped.
Label of column to be popped.

Returns
-------
popped : Series
Series

Examples
--------
>>> df = pd.DataFrame([('falcon', 'bird', 389.0),
... ('parrot', 'bird', 24.0),
... ('lion', 'mammal', 80.5),
... ('monkey', 'mammal', np.nan)],
>>> df = pd.DataFrame([('falcon', 'bird', 389.0),
... ('parrot', 'bird', 24.0),
... ('lion', 'mammal', 80.5),
... ('monkey','mammal', np.nan)],
... columns=('name', 'class', 'max_speed'))
>>> df
name class max_speed
Expand Down