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
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework