class_docstr: Auxiliary class to decouple display handling logic from other functionality.
class_docstr_tok: ["Auxiliary","class","to","decouple","display","handling","logic","from","other","functionality","."]
docstr: Handle dataframe item.
docstr_tok: ["Handle","dataframe","item","."]
code: def handle_dataframe(
      cls, item: t.Union[pd.DataFrame, Styler], index: int, **kwargs
  ) -> t.Tuple[str, "WBValue"]:
      """Handle dataframe item."""
      if isinstance(item, Styler):
          return (
              f"item-{index}-table",
              wandb.Table(
                  dataframe=item.data.reset_index(),
                  allow_mixed_types=True,
              ),
          )
      else:
          return (
              f"item-{index}-table",
              wandb.Table(
                  dataframe=item.reset_index(), allow_mixed_types=True
              ),
          )
  
imports: import typing
  from collections import OrderedDict
  import pandas
  from pandas.io.formats.style import Styler
  from plotly.basedatatypes import BaseFigure
  from deepchecks.core import check_result
  from deepchecks.core.serialization.abc import ABCDisplayItemsHandler, WandbSerializer
  from deepchecks.core.serialization.common import aggregate_conditions, concatv_images, flatten, normalize_value, prettify
  from deepchecks.utils.wandb_utils import WANDB_INSTALLATION_CMD
label_desc: Use image node_id 3 for calling the DisplayItemsHandler obj's underlying member method code with example usage: obj.handle_dataframe(cls, item, index) and returns: str, index, str,  wandb, str, index, str,  wandb