class_docstr: Layout some DataFrames in vertical/horizontal layout for explanation.
  Used in merging.rst
class_docstr_tok: ["Layout","some","DataFrames","in","vertical\/horizontal","layout","for","explanation",".","Used","in","merging.rst"]
docstr: Calculate table shape considering index levels.
docstr_tok: ["Calculate","table","shape","considering","index","levels","."]
code: def _shape(self, df: pd.DataFrame) -> tuple[int, int]:
      """
      Calculate table shape considering index levels.
      """
      row, col = df.shape
      return row + df.columns.nlevels, col + df.index.nlevels
  
file_path: catboost/contrib/python/pandas/py3/pandas/util/_doctools.py
imports: from __future__ import annotations
  from typing import Iterable
  import numpy
  import pandas
label_desc: Use image node_id 2 for calling the TablePlotter obj's underlying member method code with example usage: obj._shape(df) and returns: unknown,  unknown