I have list of words which needs to be colored if they are appearing in a string in pandas print option in Jupyter
import pandas as pd
words=['bullish','bearish','day trading','loss']
df1=pd.DataFrame([[1,'Todays market was bearish and 20 accounts were in loss'],[2,'240 accounts did day trading in bullish market']],columns=['Row', 'Text'])
I need to color only Bearish & loss in the first text,bullish & Day trading in the second text
Todays market was bearish and 20 accounts were in loss
240 accounts did day trading in bullish market