Pandas DataFrame: pop() function
DataFrame - pop() function
The pop() function returns item and drop from frame.
Syntax:DataFrame.pop(self, item)
Parameters:
Name | Description | Type/Default Value | Required / Optional |
---|---|---|---|
item | Label of column to be popped. | str | Required |
Returns: Series
Example:
Download the Pandas DataFrame Notebooks from here.
Previous: DataFrame - lookup() function
Next: DataFrame - tail() function
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/pandas/dataframe/dataframe-pop.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics