remove unnamed 0 column pandas

df.drop(df.filter(regex="Unnamed"),axis=1, inplace=True)

Here is what the above code is Doing:
1. We’re using the filter method to select all columns that have “Unnamed” in the name.
2. We’re using the drop method to drop those columns.
3. We’re setting the inplace parameter to True to make the changes to the df variable itself.