avoid getting nan values pandas code example
Example 1: pandas filter non nan
filtered_df = df[df['name'].notnull()]
Example 2: find nan value in dataframe python
# to mark NaN column as True
df['your column name'].isnull()
filtered_df = df[df['name'].notnull()]
# to mark NaN column as True
df['your column name'].isnull()