pandas.Series.pop
pandas 3.1.1 · Series and accessors · method
Remove a labeled entry and return it. A DataFrame returns the removed column.
Call syntax
Series.pop(item)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
item |
Required Positional or keyword |
label |
Returns
scalar