Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to fetch only the columns from a datframe which has a particular datatype

# this will whow the columns of a dataframe which have datatype as int and float
df.select_dtypes(include=['int64', 'float64'])
Source by geeksforgeeks.com #
 
PREVIOUS NEXT
Tagged: #fetch #columns #datframe #datatype
ADD COMMENT
Topic
Name
4+9 =