how do i drop rows of a dataframe code example
Example 1: remove rows from dataframe
df.drop(['Cochice', 'Pima'])
Example 2: pandas drop a list of rows
df.drop(df.index[[1,3]], inplace=True)
df.drop(['Cochice', 'Pima'])
df.drop(df.index[[1,3]], inplace=True)