I'm trying to select a set of columns from a dataset that meets a certain condition. So for example I have these columns in the dataframe:
['string_category_4', 'string_category_24', 'range_category_6',
'range_category_17', 'int_numeric_21', 'string_category_15',
'float_numeric_8', 'int_bool_19', 'int_bool_2']
Each of the trailing numbers in the column name is going to be a unique identifier, regardless of the prefix like category or numeric. I would like to select all the columns which are <=10 so it should return a list for me that is:
['string_category_4', 'range_category_6', 'float_numeric_8',
'int_bool_2']
Is there a way with either string processing or even simpler way to do this?