filtering dataframe creating nans code example Example: pandas filter non nan filtered_df = df[df['name'].notnull()]