I have below two requirements, but in a first step, when I try to highlight the column, it throws an error 'list' object is not callable I am relatively new to python so unable to figure out what exactly causing the error. Any help will be appreciated
- Highlight the entire row when it gets a specific id.
- Add a comment in the “Comments” column when a row is highlighted
Dataframe
    ID  Name    Comments
0   11  item1
1   12  item2    
2   13  item3
3   14  item4
4   15  item5
def highlight_rows(s):        
    if s.my_column == 'some_text':
        return ['background-color: yellow'] * s.size
a=12
df[df["ID"] == a].style.apply(highlight_rows(a),color='Blue', axis=None)
 
    