Skip to content
Snippets Groups Projects
  • Matt Hagen's avatar
    558e9c7e
    [SPARK-10663] Removed unnecessary invocation of DataFrame.toDF method. · 558e9c7e
    Matt Hagen authored
    The Scala example under the "Example: Pipeline" heading in this
    document initializes the "test" variable to a DataFrame. Because test
    is already a DF, there is not need to call test.toDF as the example
    does in a subsequent line: model.transform(test.toDF). So, I removed
    the extraneous toDF invocation.
    
    Author: Matt Hagen <anonz3000@gmail.com>
    
    Closes #8875 from hagenhaus/SPARK-10663.
    558e9c7e
    History
    [SPARK-10663] Removed unnecessary invocation of DataFrame.toDF method.
    Matt Hagen authored
    The Scala example under the "Example: Pipeline" heading in this
    document initializes the "test" variable to a DataFrame. Because test
    is already a DF, there is not need to call test.toDF as the example
    does in a subsequent line: model.transform(test.toDF). So, I removed
    the extraneous toDF invocation.
    
    Author: Matt Hagen <anonz3000@gmail.com>
    
    Closes #8875 from hagenhaus/SPARK-10663.