Repository: spark Updated Branches: refs/heads/master 3bd8ddf7c -> d2a879762
[SPARK-19734][PYTHON][ML] Correct OneHotEncoder doc string to say dropLast ## What changes were proposed in this pull request? Updates the doc string to match up with the code i.e. say dropLast instead of includeFirst ## How was this patch tested? Not much, since it's a doc-like change. Will run unit tests via Jenkins job. Author: Mark Grover <m...@apache.org> Closes #17127 from markgrover/spark_19734. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d2a87976 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d2a87976 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d2a87976 Branch: refs/heads/master Commit: d2a879762a2b4f3c4d703cc183275af12b3c7de1 Parents: 3bd8ddf Author: Mark Grover <m...@apache.org> Authored: Wed Mar 1 22:57:34 2017 -0800 Committer: Yanbo Liang <yblia...@gmail.com> Committed: Wed Mar 1 22:57:34 2017 -0800 ---------------------------------------------------------------------- python/pyspark/ml/feature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/d2a87976/python/pyspark/ml/feature.py ---------------------------------------------------------------------- diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py index 67c12d8..83cf763 100755 --- a/python/pyspark/ml/feature.py +++ b/python/pyspark/ml/feature.py @@ -1363,7 +1363,7 @@ class OneHotEncoder(JavaTransformer, HasInputCol, HasOutputCol, JavaMLReadable, @keyword_only def __init__(self, dropLast=True, inputCol=None, outputCol=None): """ - __init__(self, includeFirst=True, inputCol=None, outputCol=None) + __init__(self, dropLast=True, inputCol=None, outputCol=None) """ super(OneHotEncoder, self).__init__() self._java_obj = self._new_java_obj("org.apache.spark.ml.feature.OneHotEncoder", self.uid) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org