how to delete row in dataframe pandas code example
Example 1: delete a row in pandas dataframe
df.drop(df.index[2])
Example 2: drop a column from dataframe
df = df.drop('column_name', 1)
Example 3: pandas dataframe delete column
del df['column_name']
Example 4: remove rows from dataframe
df.drop(['Cochice', 'Pima'])