def set_style(style,
              text_color='white',
              highlight_hover=True,
              mini_zoom=False,
              th_mini_font_size=6,
              enforce_size=False,
              td_width=15,
              td_height=15):
  """Imposes some styling options on a DataFrame.style object."""
  properties = [
      {
          'selector': 'td',
          'props': [
              ('color', text_color),
          ]
      },
      {
          'selector':
              'table',
          'props': [
              ('table-layout', 'fixed'),
              ('width', '100%'),
              ('height', '100%'),
          ]
      },
      {
          'selector': '',
          'props': [('border-collapse', 'collapse')]
      },
      {
          'selector': 'table, tr, th, td',
          'props': [('border', '1px solid black')]
      },
  ]
  if enforce_size:
    properties.append({
        'selector':
            'tr, th, td',
        'props': [('overflow', 'hidden'), ('text-overflow',
                                           'clip'), ('width',
                                                     '{}px'.format(td_width)),
                  ('height',
                   '{}px'.format(td_height)), ('max-width',
                                               '{}px'.format(td_width)),
                  ('max-height', '{}px'.format(td_height)), ('white-space',
                                                             'nowrap')]
    })
  if highlight_hover:
    properties.append({
        'selector': 'tr:hover',
        'props': [('background-color', 'yellow')]
    })
  if mini_zoom:
    properties.extend([{
        'selector': 'th',
        'props': [('font-size', '{}pt'.format(th_mini_font_size))]
    }, {
        'selector': 'td',
        'props': [('padding', '0em 0em'),
                  ('font-size', '1px')]
    }, {
        'selector': 'td:hover',
        'props': [
            ('max-width', '200px'),
            ('font-size', '12pt'),
            ('padding', '10px')]
    }, {
        'selector': 'th:hover',
        'props': [
            ('max-width', '200px'),
            ('font-size', '12pt'),
            ('padding', '10px')]
    }, {
        'selector': 'tr:hover',
        'props': [
            ('max-width', '200px'),
            ('font-size', '12pt'),
            ('padding', '10px')]
    }])
  return style.set_table_styles(properties).set_table_attributes('border=1')