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