I have a dataframe in a format:
d = {'vertex': [0,0,0,1,1] ,'hour': [1, 1,2,1,2], 'value': ['sun', 'watermelon','sun','watermelon','sun']}
df = pd.DataFrame(data=d)
How can I highlight rows where there is both 'sun' and 'watermelon' in 'value' column for a grouped dataframe by two columns [vertex,hour]. Which means that first two rows should be highlighted, because for vertex 0 and hour 1 there are bot values 'sun' and 'watermelon' in the grouped dataframe.