Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19156#discussion_r149641037
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/stat/Summarizer.scala ---
    @@ -60,15 +61,18 @@ sealed abstract class SummaryBuilder {
      * This class lets users pick the statistics they would like to extract 
for a given column. Here is
      * an example in Scala:
      * {{{
    - *   val dataframe = ... // Some dataframe containing a feature column
    - *   val allStats = dataframe.select(Summarizer.metrics("min", 
"max").summary($"features"))
    - *   val Row(Row(min_, max_)) = allStats.first()
    + *   import org.apache.spark.ml.linalg._
    +  *   import org.apache.spark.sql.Row
    --- End diff --
    
    nit: indent


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to