drop pandas column by name code example
Example 1: drop a column in pandas
note: df is your dataframe
df = df.drop('coloum_name',axis=1)
Example 2: df drop column
df = df.drop(['B', 'C'], axis=1)
note: df is your dataframe
df = df.drop('coloum_name',axis=1)
df = df.drop(['B', 'C'], axis=1)