get rid of first column in dataframe pandas python code example
Example 1: drop columns pandas
df.drop(columns=['B', 'C'])
Example 2: remove a column from dataframe
del df['column_name'] #to remove a column from dataframe
df.drop(columns=['B', 'C'])
del df['column_name'] #to remove a column from dataframe