File size: 347 Bytes
36a404e
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
# Sample DataFrame
data = {
    'Column1': ['This is a specific substring example', 'Another example', 'One more'],
    'Column2': ['Some data', 'Another data', 'More data']
}
df = pd.DataFrame(data)

# Define the column to highlight and the substrings to highlight
column_to_highlight = 'Column1'
substrings_to_highlight = ['specific', 'example']