Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check if column has na python

#Check for NaN under a single DataFrame column:
df['your column name'].isnull().values.any()
#Count the NaN under a single DataFrame column:
df['your column name'].isnull().sum()
#Check for NaN under an enire DataFrame:
df.isnull().values.any()
 
PREVIOUS NEXT
Tagged: #check #column #na #python
ADD COMMENT
Topic
Name
6+4 =