drop head dataframe code example
Example 1: drop columns pandas
df.drop(columns=['B', 'C'])
Example 2: drop column dataframe
df.drop(columns=['Unnamed: 0'])
Example 3: pandas dataframe delete column
del df['column_name']
df.drop(columns=['B', 'C'])
df.drop(columns=['Unnamed: 0'])
del df['column_name']