dataframe delete row

df.drop(df.index[-2])
df.drop(df.index[[3, 4]])
df.drop(['row_1', 'row_2'])
df.drop('column_1', axis=1)
df[df.name != 'cell']

Here is what the above code is Doing:
1. df.drop(df.index[-2]) drops the last row of the DataFrame.
2. df.drop(df.index[[3, 4]]) drops the fourth and fifth rows of the DataFrame.
3. df.drop([‘row_1’, ‘row_2’]) drops the first and second rows of the DataFrame.
4. df.drop(‘column_1’, axis=1) drops the first column of the DataFrame.
5. df[df.name != ‘cell’] drops all rows that have a name of ‘cell’.