I have a dataframe with multiple columns starting with a number. For instance,
00am 00pm 02am 03am 10am 10k 11th 12th 13th ... ABC JOIN
example example example ... ... ... ... ... example example
I would like to remove all the columns that start with a number to have
... ABC JOIN
... example example
I used str and isdigit
df.loc[:,~df.columns.str.isdigit()]
but the result stills shows columns starting with numbers. Similarly I should exclude columns that contains numbers (I would say that in this case I should use str.contain()).