Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11807#discussion_r56773733
  
    --- Diff: python/pyspark/ml/feature.py ---
    @@ -2385,7 +2385,31 @@ class RFormula(JavaEstimator, HasFeaturesCol, 
HasLabelCol):
         |0.0|0.0|  a|[0.0,1.0]|  0.0|
         +---+---+---+---------+-----+
         ...
    -    >>> rf.fit(df, {rf.formula: "y ~ . - s"}).transform(df).show()
    +    >>> model = rf.fit(df, {rf.formula: "y ~ . - s"})
    --- End diff --
    
    Oh, sorry, I originally thought this was a new fit() being added, and I 
wanted to avoid unnecessary model fitting.  I now see it was already there, so 
it's fine either way.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to