Github user felixcheung commented on a diff in the pull request: https://github.com/apache/spark/pull/17978#discussion_r116652156 --- Diff: python/pyspark/ml/feature.py --- @@ -2082,8 +2082,9 @@ class StringIndexer(JavaEstimator, HasInputCol, HasOutputCol, HasHandleInvalid, """ A label indexer that maps a string column of labels to an ML column of label indices. If the input column is numeric, we cast it to string and index the string values. - The indices are in [0, numLabels), ordered by label frequencies. - So the most frequent label gets index 0. + The indices are in [0, numLabels). By default, this is ordered by label frequencies + so the most frequent label gets index 0. The ordering behavior is controlled by + setting stringOrderType. --- End diff -- I think you need to backtick and add a tag for the attribute
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org