Skip to content

Commit

Permalink
Remove the test about whether "features" and "prediction" columns exi…
Browse files Browse the repository at this point in the history
…st or not in Python
  • Loading branch information
yu-iskw committed Jul 17, 2015
1 parent fb2417c commit 4c61693
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions python/pyspark/ml/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ class KMeans(JavaEstimator, HasFeaturesCol, HasMaxIter, HasSeed):
>>> len(centers)
2
>>> transformed = model.transform(df).select("features", "prediction")
>>> "features" in transformed.columns
True
>>> "prediction" in transformed.columns
True
>>> rows = transformed.collect()
>>> rows[0].prediction == rows[1].prediction
True
Expand Down

0 comments on commit 4c61693

Please sign in to comment.