python if nan then 0 pandas code example Example: python data frame check if any nan value present df['your column name'].isnull().values.any()