code: def get_median(self, input_data):
      table = Table(data=input_data)
      view = table.view(
          columns=["Price"],
          aggregates={"Price": "median"},
          group_by=["Item"],
      )
  
      return view.to_json()[0]["Price"]
  
file_path: perspective/python/perspective/perspective/tests/core/test_aggregates.py
imports: from pytest import raises
  from perspective import PerspectiveError, PerspectiveViewer, PerspectiveWidget, Aggregate, Table
label_desc: Use image node_id 12 for calling the TestAggregates obj's underlying member method code with example usage: obj.get_median(input_data) and returns: view