copy column values into new string in pandas code example Example: in dataframe particular column to string df["fruit"] = df["fruit"].astype("|S")