how to delete and insert columns in pandas code example
Example 1: df drop column
df = df.drop(['B', 'C'], axis=1)
Example 2: how to delete a column from a dataframe in python
del df['column']
df = df.drop(['B', 'C'], axis=1)
del df['column']