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