Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/20070#discussion_r159129807
--- Diff:
examples/src/main/scala/org/apache/spark/examples/mllib/HypothesisTestingExample.scala
---
@@ -68,7 +68,7 @@ object HypothesisTestingExample {
// against the label.
val featureTestResults: Array[ChiSqTestResult] =
Statistics.chiSqTest(obs)
featureTestResults.zipWithIndex.foreach { case (k, v) =>
- println("Column " + (v + 1).toString + ":")
+ println(s"Column ${(v + 1).toString} :")
--- End diff --
.toString is redundant here and elsewhere with interpolation. I think that
should be simplified.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]