w3resource

Pandas Series: pop() function

Get item and drop from frame

The pop() function is used to get item and drop from frame. Raise KeyError if not found.

Syntax:

Series.pop(self, item)
Pandas Series pop() function

Parameters:

Name Description Type Required / Optional
item Label of column to be popped.

str Required

Returns: Series.

Example:


Download the above Notebook from here.



Inviting useful, relevant, well-written and unique guest posts