Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 06F85200C84 for ; Mon, 15 May 2017 02:49:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 05B05160BCC; Mon, 15 May 2017 00:49:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4CA6E160BB7 for ; Mon, 15 May 2017 02:49:50 +0200 (CEST) Received: (qmail 47547 invoked by uid 500); 15 May 2017 00:49:49 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 47536 invoked by uid 99); 15 May 2017 00:49:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2017 00:49:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1D246DFBC8; Mon, 15 May 2017 00:49:49 +0000 (UTC) From: HyukjinKwon To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request #17978: [SPARK-20736][Python] PySpark StringIndexer suppo... Content-Type: text/plain Message-Id: <20170515004949.1D246DFBC8@git1-us-west.apache.org> Date: Mon, 15 May 2017 00:49:49 +0000 (UTC) archived-at: Mon, 15 May 2017 00:49:51 -0000 Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/17978#discussion_r116395911 --- Diff: python/pyspark/ml/feature.py --- @@ -2115,22 +2115,32 @@ class StringIndexer(JavaEstimator, HasInputCol, HasOutputCol, HasHandleInvalid, .. versionadded:: 1.4.0 """ + stringOrderType = Param(Params._dummy(), "stringOrderType", + "How to order labels of string column. The first label after " + + "ordering is assigned an index of 0. Supported options: " + + "frequencyDesc, frequencyAsc, alphabetDsec, alphabetAsc.", + typeConverter=TypeConverters.toString) + @keyword_only - def __init__(self, inputCol=None, outputCol=None, handleInvalid="error"): + def __init__(self, inputCol=None, outputCol=None, handleInvalid="error", + stringOrderType="frequencyDesc"): """ - __init__(self, inputCol=None, outputCol=None, handleInvalid="error") + __init__(self, inputCol=None, outputCol=None, handleInvalid="error", \ --- End diff -- (Probably, the leading `\` could be removed.) --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org