pandas select rows without nan code example
Example 1: dataframe find nan rows
df[df.isnull().any(axis=1)]
Example 2: pandas filter non nan
filtered_df = df[df['name'].notnull()]
Example 3: select non nan values python
df[~np.isnan(df)]
df[df.isnull().any(axis=1)]
filtered_df = df[df['name'].notnull()]
df[~np.isnan(df)]