drop a column by name pandas code example
Example 1: drop a column in pandas
note: df is your dataframe
df = df.drop('coloum_name',axis=1)
Example 2: pandas dataframe delete column
del df['column_name']
note: df is your dataframe
df = df.drop('coloum_name',axis=1)
del df['column_name']