Skip to content

Commit 5bfa4dc

Browse files
author
Wayne Zhang
committed
fix example error
1 parent 2fe9432 commit 5bfa4dc

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
@@ -2086,7 +2086,7 @@ class StringIndexer(JavaEstimator, HasInputCol, HasOutputCol, HasHandleInvalid,
20862086
so the most frequent label gets index 0. The ordering behavior is controlled by
20872087
setting :py:attr:`stringOrderType`. Its default value is 'frequencyDesc'.
20882088
2089-
>>> stringIndexer = StringIndexer(inputCol="label", outputCol="indexed", handleInvalid="error")
2089+
>>> stringIndexer = StringIndexer(inputCol="label", outputCol="indexed", handleInvalid="error",
20902090
... stringOrderType="frequencyDesc")
20912091
>>> model = stringIndexer.fit(stringIndDf)
20922092
>>> td = model.transform(stringIndDf)

0 commit comments

Comments
 (0)