I´m using imgkit to create a pdf with images created from html that comes from a dataframe. I need whole specific rows to be bold [rows: 0 and 7] but haven't achieved it. What am I missing?
html = df.style\
         .set_properties(**{'width': 200, 'background-color': '#eae2d5',
                            'color': 'black', 'font-size': '14px',
                            'text-align': 'left'},
                         subset=['var1'])\
         .set_properties(**{'color': '\033[1m'},  # BOLDING rows 1   
                         subset=['var1'][0])\   # Here is the error.    .
         .set_properties(**{'color': '\033[1m'},  # BOLDING rows 7   
                         subset=['var1'][7])\   # Here is the error.              
         .set_properties(**{'width': 80, 'background-color': '#eae2d5',
                            'color': 'black', 'font-size': '14px',
                            'text-align': 'center'},
                         subset=['var3', 'var4'])\
         .set_table_styles([{'selector': 'thead',
                             'props': [('background-color', '#b2361e'),
                                       ('color', 'white'),
                                       ('font-size', '18px')]}, ])\
         .highlight_null(null_color='white').hide_index().render()
so far it says: "SyntaxError: unexpected character after line continuation character"
 
    