extracted object from dataframe to string in pandas code example Example: object to string pandas df['column name'] = df['column name'].astype(str)