I'm trying to remove a list of columns from a pandas.DataFrame. I've created a list through
diff = df1.difference(df2)
I would like to do something like:
for name in diff:
dataframe.pop(name)
Is there a way to apply the pop function in a vectorized way with all names in the diff index array?
Thanks all for the help!
Regards, Jan