pandas filter by nan code example Example: pandas filter non nan filtered_df = df[df['name'].notnull()]