pandas drop column -site:medium.com -site:towardsdatascience.com code example
Example 1: drop a column from dataframe
df = df.drop('column_name', 1)
Example 2: drop column dataframe
df.drop(columns=['Unnamed: 0'])
df = df.drop('column_name', 1)
df.drop(columns=['Unnamed: 0'])