Github user yanboliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/8310#discussion_r37428210
--- Diff: python/pyspark/ml/feature.py ---
@@ -790,18 +790,22 @@ class StringIndexer(JavaEstimator, HasInputCol,
HasOutputCol):
[(0, 0.0), (1, 2.0), (2, 1.0), (3, 0.0), (4, 0.0), (5, 1.0)]
"""
+ handleInvalid = Param(Params._dummy(), "handleInvalid", "A handler in
case of invalid column.")
+
@keyword_only
- def __init__(self, inputCol=None, outputCol=None):
+ def __init__(self, handleInvalid="error", inputCol=None,
outputCol=None):
--- End diff --
I think we can make ```handleInvalid``` shared param just like what we do
in Scala API. I have submit #8102 for this issue, please feel free to comment.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]