code: def hide_index_for_display(
      df: t.Union[pd.DataFrame, pd.io.formats.style.Styler]
  ) -> pd.io.formats.style.Styler:
      """Hide the index of a dataframe for display."""
      styler = df.style if isinstance(df, pd.DataFrame) else df
      if hasattr(styler, "hide"):
          return styler.hide(axis="index")
      return styler.hide_index()
  
file_path: deepchecks/deepchecks/utils/dataframes.py
imports: import typing
  import numpy
  import pandas
  from pandas.core.dtypes.common import is_float_dtype, is_integer_dtype, is_numeric_dtype
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.type_inference import infer_categorical_features
  from deepchecks.utils.typing import Hashable
  from deepchecks.utils.validation import ensure_hashable_or_mutable_sequence
label_desc: Use image node_id 11 for calling a global function with example usage: hide_index_for_display(df) and returns: styler, styler