►
Run
import pandas as pd #initialize a dataframe df = pd.DataFrame({ 'a':[14, 52, 46], 'b':[32, 85, 64], 'c':[88, 47, 36]}) #delete column 'b' df1 = df.drop(['b'], axis=1) #print the dataframe print(df1)
Output