class_docstr: A builder object that provides summary statistics about a given column.
  
  Users should not directly create such builders, but instead use one of the methods in
  :py:class:`pyspark.ml.stat.Summarizer`
  
  .. versionadded:: 2.4.0
class_docstr_tok: ["A","builder","object","that","provides","summary","statistics","about","a","given","column",".","Users","should","not","directly","create","such","builders",",","but","instead","use","one","of","the","methods","in",":","py",":","class",":","`","pyspark.ml.stat.Summarizer","`","..","versionadded",":",":","2.4.0"]
docstr: Returns an aggregate object that contains the summary of the column with the requested
  metrics.
  
  .. versionadded:: 2.4.0
  
  Parameters
  ----------
  featuresCol : str
      a column that contains features Vector object.
  weightCol : str, optional
      a column that contains weight value. Default weight is 1.0.
  
  Returns
  -------
  :py:class:`pyspark.sql.Column`
      an aggregate column that contains the statistics. The exact content of this
      structure is determined during the creation of the builder.
docstr_tok: ["Returns","an","aggregate","object","that","contains","the","summary","of","the","column","with","the","requested","metrics",".","..","versionadded",":",":","2.4.0","Parameters","--","--","--","--","--","featuresCol",":","str","a","column","that","contains","features","Vector","object",".","weightCol",":","str",",","optional","a","column","that","contains","weight","value",".","Default","weight","is","1.0",".","Returns","--","--","--","-",":","py",":","class",":","`","pyspark.sql.Column","`","an","aggregate","column","that","contains","the","statistics",".","The","exact","content","of","this","structure","is","determined","during","the","creation","of","the","builder","."]
code: def summary(
      self, featuresCol: Column, weightCol: Optional[Column] = None
  ) -> Column:
      """
      Returns an aggregate object that contains the summary of the column with the requested
      metrics.
  
      .. versionadded:: 2.4.0
  
      Parameters
      ----------
      featuresCol : str
          a column that contains features Vector object.
      weightCol : str, optional
          a column that contains weight value. Default weight is 1.0.
  
      Returns
      -------
      :py:class:`pyspark.sql.Column`
          an aggregate column that contains the statistics. The exact content of this
          structure is determined during the creation of the builder.
      """
      featuresCol, weightCol = Summarizer._check_param(
          featuresCol, weightCol
      )
      assert self._java_obj is not None
  
      return Column(
          self._java_obj.summary(featuresCol._jc, weightCol._jc)
      )
  
imports: import sys
  from typing import Optional, Tuple, TYPE_CHECKING
  from pyspark import since, SparkContext
  from pyspark.ml.common import _java2py, _py2java
  from pyspark.ml.linalg import Matrix, Vector
  from pyspark.ml.wrapper import JavaWrapper, _jvm
  from pyspark.sql.column import Column, _to_seq
  from pyspark.sql.dataframe import DataFrame
  from pyspark.sql.functions import lit
label_desc: Use image node_id 2 for calling the SummaryBuilder obj's underlying member method code with example usage: obj.summary(featuresCol, weightCol) and returns: Column