drop a columns in pandas df code example
Example 1: python drop axis
df.drop(['colonna da togliere'], axis=1)
Example 2: removing features pandas
df.drop([‘feature_1’,’feature_2’], inplace = True, axis = 1)
df.drop(['colonna da togliere'], axis=1)
df.drop([‘feature_1’,’feature_2’], inplace = True, axis = 1)