Whenever we are dropping two column in a dataframe, we enclose the column names with a single square bracket. Below is the code:
df.drop(columns=[\'first\',\'last\'],