pandas how to pop and delete column code example
Example 1: remove column from dataframe
df.drop('column_name', axis=1, inplace=True)
Example 2: drop a column in pandas
note: df is your dataframe
df = df.drop('coloum_name',axis=1)
df.drop('column_name', axis=1, inplace=True)
note: df is your dataframe
df = df.drop('coloum_name',axis=1)