I have a data frame with multiple columns
ID|NAME|CITY|AGE|A Bot(S)_S|B Cost_S|C Value(!)_S|D Bot($)_S|E Value(!)_S
I am able to find the columns ending with '_S' using below code
df.columns[df.columns.str.contains('_S')]
But i need one or more columns to be excluded example : 'D Bot($)_S' while fetching.
EDIT : Correction in column names , they are having space in between.
How can i do it ?