Answers for "get dtype of column pandas"

2

get columns based on dtype pandas

>>df.select_dtypes(include='object').columns

Index(['C', 'D'], dtype='object')
Posted by: Guest on March-16-2021
2

set type of column pandas

df.astype(int)
Posted by: Guest on November-30-2020

Code answers related to "get dtype of column pandas"

Python Answers by Framework

Browse Popular Code Answers by Language