pandas column numbers from names code example
Example 1: python dataframe get numeric columns
dfnew = df.select_dtypes(include=np.number)
Example 2: how to get column names having numeric value in pandas
cols = df.select_dtypes([np.number]).columns