class_docstr: Aggregations create a new value by summarizing a :class:`.Column`.
  
  Aggregations are applied with :meth:`.Table.aggregate` and
  :meth:`.TableSet.aggregate`.
  
  When creating a custom aggregation, ensure that the values returned by
  :meth:`.Aggregation.run` are of the type specified by
  :meth:`.Aggregation.get_aggregate_data_type`. This can be ensured by using
  the :meth:`.DataType.cast` method. See :class:`.Summary` for an example.
class_docstr_tok: ["Aggregations","create","a","new","value","by","summarizing","a",":","class",":","`",".Column","`",".","Aggregations","are","applied","with",":","meth",":","`",".Table.aggregate","`","and",":","meth",":","`",".TableSet.aggregate","`",".","When","creating","a","custom","aggregation",",","ensure","that","the","values","returned","by",":","meth",":","`",".Aggregation.run","`","are","of","the","type","specified","by",":","meth",":","`",".Aggregation.get_aggregate_data_type","`",".","This","can","be","ensured","by","using","the",":","meth",":","`",".DataType.cast","`","method",".","See",":","class",":","`",".Summary","`","for","an","example","."]
docstr: Get the data type that should be used when using this aggregation with
  a :class:`.TableSet` to produce a new column.
  
  Should raise :class:`.UnsupportedAggregationError` if this column does
  not support aggregation into a :class:`.TableSet`. (For example, if it
  does not return a single value.)
docstr_tok: ["Get","the","data","type","that","should","be","used","when","using","this","aggregation","with","a",":","class",":","`",".TableSet","`","to","produce","a","new","column",".","Should","raise",":","class",":","`",".UnsupportedAggregationError","`","if","this","column","does","not","support","aggregation","into","a",":","class",":","`",".TableSet","`",".","(","For","example",",","if","it","does","not","return","a","single","value",".",")"]
code: def get_aggregate_data_type(self, table):
      """
      Get the data type that should be used when using this aggregation with
      a :class:`.TableSet` to produce a new column.
  
      Should raise :class:`.UnsupportedAggregationError` if this column does
      not support aggregation into a :class:`.TableSet`. (For example, if it
      does not return a single value.)
      """
      raise UnsupportedAggregationError()
  
imports: from agate.exceptions import UnsupportedAggregationError
label_desc: Use image node_id 2 for calling the Aggregation obj's underlying member method code with example usage: obj.get_aggregate_data_type(table) without return types