Answers for "pandas python get column number"

1

python dataframe get numeric columns

dfnew = df.select_dtypes(include=np.number)
Posted by: Guest on November-19-2020
1

pandas number of columns

### first method ###
len(df.columns)
### second method ###
df.shape[1]
Posted by: Guest on September-24-2021

Code answers related to "pandas python get column number"

Python Answers by Framework

Browse Popular Code Answers by Language