Python Pandas dataframe drop() is an inbuilt function that is used to drop the rows. The drop() removes the row based on an index provided to that function. We can remove one or more than one row from a DataFrame using multiple ways. We can drop the rows using a particular index or list of indexes if we want to remove multiple rows.

How To Remove Rows In DataFrame

Pandas DataFrame provides a member function  drop() whose syntax is following.

DataFrame.drop(labels=None, axis=0, index=None, columns=None, level=None, inplace=False, errors='raise')

#python #pandas #dataframe

Python Pandas: How To Remove Rows and Columns In DataFrame
13.25 GEEK