convert a dataframe column from float to int stack overflow code example Example: pandas convert float to int df['col'] = df['col'].astype(int)