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