how to remove first column in pandas code example
Example 1: drop a column from dataframe
df = df.drop('column_name', 1)
Example 2: removing features pandas
df.drop([‘feature_1’,’feature_2’], inplace = True, axis = 1)
Example 3: how to delete a column from a dataframe in python
del df['column']
Example 4: remove a column from dataframe
del df['column_name'] #to remove a column from dataframe