04pallav
9/11/2017 - 10:27 PM

Delete column from dataframe

Delete column from dataframe

del df['column_name']
df.drop(df.columns[[0, 1, 3]], axis=1)  # delete columns by number

df.drop(['col1','col2'],axis=1)