To delete a column in pandas, you can use the drop() method along with the axis parameter set to 1. This will drop the specified column from the DataFrame. For example, if you have a DataFrame named df and you want to delete a column named column_name, you can use the following code:
df.drop('column_name', axis=1, inplace=True)
This will remove the specified column from the DataFrame df. The inplace=True parameter is used to modify the original DataFrame instead of creating a new copy.