df remove in python code example
Example 1: delete a row in pandas dataframe
df.drop(df.index[2])
Example 2: removing features pandas
df.drop([‘feature_1’,’feature_2’], inplace = True, axis = 1)
df.drop(df.index[2])
df.drop([‘feature_1’,’feature_2’], inplace = True, axis = 1)