Not null pandas dataframe

In these tutorial learn Not null pandas dataframe with example. The Gender column is checked for NULL values and a Boolean series is returned by the notnull() method and it will store True for ever NON-NULL value and False for a null value.

Syntax: 
Pandas.notnull(“DataFrame Name”) or DataFrame.notnull()

Parameters: Object to check null values for
Return Type: Dataframe of Boolean values which are False for NaN values

not null pandas dataframe Example:-

            
#importing pandas package
Import pandas as pd
#making dataframe from csv file
Data=ps.read_csv(“employee.csv”)
#creating bool series False for NaN values
Bool_series=pd.notnull(data[“Gender”])
#displaying data only with team=NaN
Data [bool_series]

Output:-

Only the rows having some value in Gender are displayed.

not null pandas dataframe

Additional Services : Refurbished Laptops Sales, Python Classes, Share Market Classes And SEO Freelancer in Pune, India