Skip to content

Commit 194ec6d

Browse files
committed
consistent formatting for the printed split
1 parent f9e3086 commit 194ec6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/ml/feature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ class QuantileDiscretizer(JavaEstimator, HasInputCol, HasOutputCol):
10091009
>>> splits = bucketizer.getSplits()
10101010
>>> splits[0]
10111011
-inf
1012-
>>> round(splits[1], 1)
1012+
>>> print("%2.1f" % round(splits[1], 1))
10131013
0.4
10141014
>>> bucketed = bucketizer.transform(df).head()
10151015
>>> bucketed.buckets

0 commit comments

Comments
 (0)