Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

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