drop a column in dataframe using pandas code example
Example 1: removing features pandas
df.drop([‘feature_1’,’feature_2’], inplace = True, axis = 1)
Example 2: pandas remove column
del df['column_name']
df.drop([‘feature_1’,’feature_2’], inplace = True, axis = 1)
del df['column_name']