How to remove multiple columns that end with same text in Pandas?
<p>I'm trying to remove
 a group of columns from a dataset. All of the variables to remove end with the text "prefix".</p>

<p>I did manage to "collect' them into a group using the following:
<a href="https://i.stack.imgur.com/w8AZ5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w8AZ5.jpg" alt="enter image description here"></a></p>

<p>and then tried a series of ways to drop that group that resulted in a variety of errors. Can anyone please, propose a way to remove these columns?</p>