drop all values pandas code example
Example 1: delete a row in pandas dataframe
df.drop(df.index[2])
Example 2: dropping nan in pandas dataframe
df.dropna(subset=['name', 'born'])
df.drop(df.index[2])
df.dropna(subset=['name', 'born'])