to detect if a data frame has nan values
df.isnull().sum().sum()
5
to detect if a data frame has nan values
df.isnull().sum().sum()
5
find null values pandas
#Retreieve boolean values of whether or not the given cells of a dataframe are
#null
df.isnull()
df null
age 0
job 0
marital 0
education 0
default 0
housing 0
loan 0
contact 0
month 0
day_of_week 0
duration 0
campaign 0
pdays 0
previous 0
poutcome 0
emp.var.rate 0
cons.price.idx 0
cons.conf.idx 0
euribor3m 0
nr.employed 0
y 0
dtype: int64
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us