delete multiple columns pandas code example
Example 1: drop multiple columns pandas
yourdf.drop(['columnheading1', 'columnheading2'], axis=1, inplace=True)
Example 2: python code to drop columns from dataframe
new_df = df.drop(labels='column_name', axis=1)
df = df.drop(labels='column_name', axis=1)
df = df.drop(['list_of_column_names'], axis=1)
Example 3: drop multiple columns in python
dataframe.drop(['columnname1', 'columnname2'], axis=1, inplace=True)
Example 4: drop a column in pandas
note: df is your dataframe
df = df.drop('coloum_name',axis=1)