Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/10999#discussion_r51371337
--- 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 --
this is maybe a bit much for a doctest since in general they are supposed
to be example-ish. Maybe this should be in the tests file instead? Just a
suggestion though.
---
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]