I need to highlight (underline/italic/Bold/Color) some words present in a text based on the list for each row arranged in a pandas dataframe. something like this. The list has the words in lower case only, but the words in text can be of lower/title/uppercase.In stackoverflow i could not make the words italic so put stars to highlight.
import pandas as pd
data = [[1, 'I love *Mangoes*','['Mangoes]'], [2,'Along with *mangoes* i like *Oranges* as well','['mangoes',
'oranges']'], [3,'My brother neither likes *Mangoes* nor *Oranges*','['mangoes','oranges']']
df = pd.DataFrame(data, columns = ['ID', 'Text','List_of_words'])