pandas force integer in dataframe code example Example: column dataframe to int df[[column_name]].astype(int)