Skip to content

Commit 6acabc2

Browse files
author
Wayne Zhang
committed
minor style fix
1 parent 36006bf commit 6acabc2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/pyspark/ml/feature.py

Lines changed: 2 additions & 2 deletions
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`.
20882088
2089-
>>> stringIndexer = StringIndexer(inputCol="label", outputCol="indexed", handleInvalid='error')
2089+
>>> stringIndexer = StringIndexer(inputCol="label", outputCol="indexed", handleInvalid="error")
20902090
>>> model = stringIndexer.fit(stringIndDf)
20912091
>>> td = model.transform(stringIndDf)
20922092
>>> sorted(set([(i[0], i[1]) for i in td.select(td.id, td.indexed).collect()]),
@@ -2114,7 +2114,7 @@ class StringIndexer(JavaEstimator, HasInputCol, HasOutputCol, HasHandleInvalid,
21142114
True
21152115
>>> stringIndexer.getStringOrderType()
21162116
'frequencyDesc'
2117-
>>> stringIndexer = StringIndexer(inputCol="label", outputCol="indexed", handleInvalid='error',
2117+
>>> stringIndexer = StringIndexer(inputCol="label", outputCol="indexed", handleInvalid="error",
21182118
... stringOrderType="alphabetDesc")
21192119
>>> model = stringIndexer.fit(stringIndDf)
21202120
>>> td = model.transform(stringIndDf)

0 commit comments

Comments
 (0)