human
How to remove multiple columns that end with same text in Pandas?
assistant
Here is some code to get a dataframe `df2` that contains all the columns of dataframe `df` that do not end in `prefix`

df2 = df.ix[:, (~df.columns.str.endswith('prefix'))]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.