how to get all numeric columns in pandas code example
Example 1: python dataframe get numeric columns
dfnew = df.select_dtypes(include=np.number)
Example 2: python dataframe get numeric columns
dfnew = df._get_numeric_data()
dfnew = df.select_dtypes(include=np.number)
dfnew = df._get_numeric_data()