Skip to content

Commit f9e3086

Browse files
committed
Round to one digit
1 parent d90339a commit f9e3086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/ml/feature.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,8 @@ class QuantileDiscretizer(JavaEstimator, HasInputCol, HasOutputCol):
10091009
>>> splits = bucketizer.getSplits()
10101010
>>> splits[0]
10111011
-inf
1012-
>>> int(splits[1]*10)
1013-
4
1012+
>>> round(splits[1], 1)
1013+
0.4
10141014
>>> bucketed = bucketizer.transform(df).head()
10151015
>>> bucketed.buckets
10161016
0.0

0 commit comments

Comments
 (0)