python remove item from dataframe code example
Example 1: remove a column from dataframe
del df['column_name'] #to remove a column from dataframe
Example 2: remove rows from dataframe
df.drop(['Cochice', 'Pima'])
del df['column_name'] #to remove a column from dataframe
df.drop(['Cochice', 'Pima'])