class_docstr: An extension to ``Styler`` that allows for and manipulates tooltips on hover
  of ``<td>`` cells in the HTML result.
  
  Parameters
  ----------
  css_name: str, default "pd-t"
      Name of the CSS class that controls visualisation of tooltips.
  css_props: list-like, default; see Notes
      List of (attr, value) tuples defining properties of the CSS class.
  tooltips: DataFrame, default empty
      DataFrame of strings aligned with underlying Styler data for tooltip
      display.
  
  Notes
  -----
  The default properties for the tooltip CSS class are:
  
      - visibility: hidden
      - position: absolute
      - z-index: 1
      - background-color: black
      - color: white
      - transform: translate(-20px, -20px)
  
  Hidden visibility is a key prerequisite to the hover functionality, and should
  always be included in any manual properties specification.
class_docstr_tok: ["An","extension","to","``","Styler","``","that","allows","for","and","manipulates","tooltips","on","hover","of","``","<","td",">","``","cells","in","the","HTML","result",".","Parameters","--","--","--","--","--","css_name",":","str",",","default","``","pd-t","''","Name","of","the","CSS","class","that","controls","visualisation","of","tooltips",".","css_props",":","list-like",",","default",";","see","Notes","List","of","(","attr",",","value",")","tuples","defining","properties","of","the","CSS","class",".","tooltips",":","DataFrame",",","default","empty","DataFrame","of","strings","aligned","with","underlying","Styler","data","for","tooltip","display",".","Notes","--","--","-","The","default","properties","for","the","tooltip","CSS","class","are",":","-","visibility",":","hidden","-","position",":","absolute","-","z-index",":","1","-","background-color",":","black","-","color",":","white","-","transform",":","translate","(","-20px",",","-20px",")","Hidden","visibility","is","a","key","prerequisite","to","the","hover","functionality",",","and","should","always","be","included","in","any","manual","properties","specification","."]
code: def __init__(
      self,
      css_props: CSSProperties = [
          ("visibility", "hidden"),
          ("position", "absolute"),
          ("z-index", 1),
          ("background-color", "black"),
          ("color", "white"),
          ("transform", "translate(-20px, -20px)"),
      ],
      css_name: str = "pd-t",
      tooltips: DataFrame = DataFrame(),
  ) -> None:
      self.class_name = css_name
      self.class_properties = css_props
      self.tt_data = tooltips
      self.table_styles: CSSStyles = []
  
imports: from __future__ import annotations
  from collections import defaultdict
  from collections.abc import Sequence
  from functools import partial
  import re
  from typing import TYPE_CHECKING, Any, Callable, DefaultDict, Optional, TypedDict, Union
  from uuid import uuid4
  import numpy
  from pandas._config import get_option
  from pandas._libs import lib
  from pandas.compat._optional import import_optional_dependency
  from pandas.core.dtypes.common import is_complex, is_float, is_integer
  from pandas.core.dtypes.generic import ABCSeries
  from pandas import DataFrame, Index, IndexSlice, MultiIndex, Series, isna
  from pandas.api.types import is_list_like
  import pandas.core.common
  from markupsafe import escape
label_desc: Use image node_id 1 to create a new Tooltips object  with example: obj = Tooltips(css_props, css_name, tooltips)