code: def test_pivottable_values_index(self, superstore):
      arrays = {
          "A": [
              "bar",
              "bar",
              "bar",
              "bar",
              "baz",
              "baz",
              "baz",
              "baz",
              "foo",
              "foo",
              "foo",
              "foo",
              "qux",
              "qux",
              "qux",
              "qux",
          ],
          "B": [
              "one",
              "one",
              "two",
              "two",
              "one",
              "one",
              "two",
              "two",
              "one",
              "one",
              "two",
              "two",
              "one",
              "one",
              "two",
              "two",
          ],
          "C": [
              "X",
              "Y",
              "X",
              "Y",
              "X",
              "Y",
              "X",
              "Y",
              "X",
              "Y",
              "X",
              "Y",
              "X",
              "Y",
              "X",
              "Y",
          ],
          "D": np.arange(16),
      }
  
      df = pd.DataFrame(arrays)
      df_pivot = df.pivot_table(
          values=["D"],
          index=["A"],
          columns=["B", "C"],
          aggfunc={"D": "count"},
      )
      widget = PerspectiveWidget(df_pivot)
      assert widget.columns == ["value"]
      assert widget.split_by == ["B", "C"]
      assert widget.group_by == ["A"]
  
file_path: perspective/python/perspective/perspective/tests/widget/test_widget_pandas.py
imports: from datetime import date
  import pandas
  import numpy
  from perspective import Table, PerspectiveWidget
label_desc: Use image node_id 10 for calling the TestWidgetPandas obj's underlying member method code with example usage: obj.test_pivottable_values_index(superstore) without return types