remove columns index from dataframe pandas code example
Example 1: drop columns pandas
df.drop(columns=['B', 'C'])
Example 2: drop column dataframe
df.drop(columns=['Unnamed: 0'])
df.drop(columns=['B', 'C'])
df.drop(columns=['Unnamed: 0'])