Skip to content

Commit

Permalink
Round to one digit
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Jan 19, 2016
1 parent d90339a commit f9e3086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/ml/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,8 @@ class QuantileDiscretizer(JavaEstimator, HasInputCol, HasOutputCol):
>>> splits = bucketizer.getSplits()
>>> splits[0]
-inf
>>> int(splits[1]*10)
4
>>> round(splits[1], 1)
0.4
>>> bucketed = bucketizer.transform(df).head()
>>> bucketed.buckets
0.0
Expand Down

0 comments on commit f9e3086

Please sign in to comment.