Beispiel #1
0
 def index_style_func(node):
     return html_style.td_style(text_align='center',
                                background_color='#4F81BD',
                                color='#FFFFFF',
                                font_weight='bold',
                                white_space='pre',
                                padding='10px',
                                border=1)
Beispiel #2
0
 def _inner(idx, col):
     color = '#FFFFFF'
     text_align = 'left'
     if col == 'count':
         text_align = 'right'
     if df.loc[idx, 'gender'] == 'F':
         color = '#bbdef8'
     else:
         color = '#e3f2fd'
     return html_style.td_style(text_align=text_align,
                                background_color=color,
                                color='#000000',
                                font_weight='normal',
                                white_space='pre',
                                padding='10px',
                                border=None)