drop column pandas

yourdf.drop(['columnheading1', 'columnheading2'], 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 as 1, which means we’re dropping columns, not rows.
3. We’re setting the inplace parameter to True, which means we’re modifying the DataFrame in place.