get int64 column pandas

Solutions on MaxInterview for get int64 column pandas by the best coders in the world

showing results for - "get int64 column pandas"
Mélissa
07 Apr 2019
1# Use select_dtypes with np.number for select all numeric columns:
2cols = [df.select_dtypes([np.number]).columns]
3print (list(cols))
4
5# Here is possible specify float64 and int64:
6cols = [df.select_dtypes([np.int64,np.float64]).columns]
7print (cols)