how to drop othe columns in pandas code example
Example 1: delete columns pandas
df = df.drop(df.columns[[0, 1, 3]], axis=1)
Example 2: remove columns from dataframe
df.drop('col_name',1) #1 drop column / 0 drop row
df = df.drop(df.columns[[0, 1, 3]], axis=1)
df.drop('col_name',1) #1 drop column / 0 drop row