diff options
author | Mark Grover <mark@apache.org> | 2017-03-01 22:57:34 -0800 |
---|---|---|
committer | Yanbo Liang <ybliang8@gmail.com> | 2017-03-01 22:57:34 -0800 |
commit | d2a879762a2b4f3c4d703cc183275af12b3c7de1 (patch) | |
tree | 81ac359ab2843d7e8dd9b7de5fb5734ac82959b1 /python/pyspark/ml/feature.py | |
parent | 3bd8ddf7c34be35e5adeb802d6e63120f9f11713 (diff) | |
download | spark-d2a879762a2b4f3c4d703cc183275af12b3c7de1.tar.gz spark-d2a879762a2b4f3c4d703cc183275af12b3c7de1.tar.bz2 spark-d2a879762a2b4f3c4d703cc183275af12b3c7de1.zip |
[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 <mark@apache.org>
Closes #17127 from markgrover/spark_19734.
Diffstat (limited to 'python/pyspark/ml/feature.py')
-rwxr-xr-x | python/pyspark/ml/feature.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py index 67c12d8059..83cf763c2c 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) |