dropna by column in dataset python code example
Example 1: dropping nan in pandas dataframe
df.dropna(subset=['name', 'born'])
Example 2: delete nans in df python
df[~np.isnan(df)]
df.dropna(subset=['name', 'born'])
df[~np.isnan(df)]