aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMark Grover <mark@apache.org>2017-03-01 22:57:34 -0800
committerYanbo Liang <ybliang8@gmail.com>2017-03-01 22:57:34 -0800
commitd2a879762a2b4f3c4d703cc183275af12b3c7de1 (patch)
tree81ac359ab2843d7e8dd9b7de5fb5734ac82959b1 /python
parent3bd8ddf7c34be35e5adeb802d6e63120f9f11713 (diff)
downloadspark-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')
-rwxr-xr-xpython/pyspark/ml/feature.py2
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)