You can use the following syntax to drop one row from a pandas DataFrame by index number: #drop first row from DataFrame df = df.drop(index=0) And you can use the following syntax to drop multiple rows from a pandas DataFrame by index numbers: #drop first, second, and fourth row from DataFrame df = df.drop(index= [0, 1, 3]) If your DataFrame ...
Alternatively you can also achive dropping rows by filtering rows and assigning to another DataFrame. 1. Quick Examples of Delete Pandas DataFrame Rows Based on Column Value. If you are in a hurry, below are some quick examples removing the DataFrame rows based on column value. Note that bottom of the article I have covered multiple other examples.