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