dropna for all column is empty code example Example: dropping nan in pandas dataframe df.dropna(subset=['name', 'born'])