change data type pandas dataframe column code example Example: set type of column pandas df.astype(int)