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

    https://github.com/apache/spark/pull/10999#discussion_r52688040
  
    --- Diff: python/pyspark/ml/clustering.py ---
    @@ -69,6 +70,25 @@ class KMeans(JavaEstimator, HasFeaturesCol, 
HasPredictionCol, HasMaxIter, HasTol
         True
         >>> rows[2].prediction == rows[3].prediction
         True
    +    >>> import os, tempfile
    --- End diff --
    
    I agree with @holdenk . This may be too verbose for a doctest. We can move 
the temp directory setup in test preparation (where we initialize `sqlContext`) 
and clean up. We can do that in a separate PR. @holdenk Could you create a JIRA 
for it? Thanks!


---
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