get numeric columns pandas code example
Example 1: get column number in dataframe pandas
# PANDAS: get column number from colomn name
dataframe.columns.get_loc("<col_name>")
Example 2: python dataframe get numeric columns
dfnew = df.select_dtypes(include=np.number)
Example 3: python dataframe get numeric columns
dfnew = df._get_numeric_data()