w3resource

Pandas Series: dropna() function

Analyze and drop Rows/Columns with Null values in a Pandas series

The dropna() function is used to return a new Series with missing values removed.

Syntax:

Series.dropna(self, axis=0, inplace=False, **kwargs)
Pandas Series dropna image

Parameters:

Name Description Type/Default Value Required / Optional
axis There is only one axis to drop values from. {0 or ‘index’}
Default Value: 0
Required
inplace If True, do operation inplace and return None. bool
Default Value: False
Required
inplace Whether to perform the operation in place on the data. bool
Default Value: False
Required
**kwargs Not in use.   Required

Returns: Series- Series with NA entries dropped from it.

Example:


Download the above Notebook from here.



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