pandas find numeric columns 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
dfnew = df.select_dtypes(include=np.number)
cols = df.select_dtypes([np.number]).columns