Is there a way to color specific phrases in pandas dataframe when I export them to Excel? PS. Im want to have colored words in my .Excel file. I have dataframe like this:
import pandas as pd
my_words = ["great", "I like that", "fucking you", "having a good time", "you are idiot"]
df = pd.DataFrame({"my words":my_words})
df.to_csv("exported csv file.csv")
I want to have red colour for words "fucking you" and "idiot". So these 2 words should have red colour in my Excel file, not entire cells.