how to remove rows from datafram which have nan values code example Example: dropping nan in pandas dataframe df.dropna(subset=['name', 'born'])