how to drop a column by name in pandas

#working with "text" syntax for the columns:
df.drop(['column_nameA', 'column_nameB'], axis=1, inplace=True)

Here is what the above code is Doing:
1. We’re using the .drop() method to drop the columns we don’t want.
2. We’re specifying the axis=1 argument to indicate we want to drop columns, not rows.
3. We’re using the inplace=True argument to make the changes to the df DataFrame itself.