My df has 3 columns
df = pd.DataFrame({\"col_1\": (0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0), \"col_2\": (0.0, 0.24, 1.0, 0.0, 0.22, 3.11, 0.0)
Put the location of row which you want remove at "location".
df = df.drop(['location' axix=1, inplace=True]