usually when you want to remove columns which are not of type float
, you can write pd.DataFrame.select_dtypes(include='float64')
. however i would like to remove a column in cases where the header name is not a float
df = pd.DataFrame({'a' : [1,2,3], 10 : [3,4,5]})
df.dtypes
will give the output
a int64
10 int64
dtype: object
how can i remove the column a
based on the fact that it's not a float
or int
?