Skip to content

Commit ca6e957

Browse files
Bucketizer docs update - nulls not supported in handleInvalid
1 parent 13e0245 commit ca6e957

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mllib/src/main/scala/org/apache/spark/ml/feature/Bucketizer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ final class Bucketizer @Since("1.4.0") (@Since("1.4.0") override val uid: String
7878
def setOutputCol(value: String): this.type = set(outputCol, value)
7979

8080
/**
81-
* Param for how to handle invalid entries containing either NaN or null values.
81+
* Param for how to handle invalid entries containing NaN values.
8282
* Values outside the splits will always be treated as errors.
8383
* Options are 'skip' (filter out rows with invalid values), 'error' (throw an error),
8484
* or 'keep' (keep invalid values in a special additional bucket).
@@ -88,7 +88,7 @@ final class Bucketizer @Since("1.4.0") (@Since("1.4.0") override val uid: String
8888
// TODO: SPARK-18619 Make Bucketizer inherit from HasHandleInvalid.
8989
@Since("2.1.0")
9090
val handleInvalid: Param[String] = new Param[String](this, "handleInvalid",
91-
"how to handle invalid entries containing either NaN or null values. " +
91+
"how to handle invalid entries containing NaN values. " +
9292
"Values outside the splits will always be treated as errors. " +
9393
"Options are skip (filter out rows with invalid values), " +
9494
"error (throw an error), or keep (keep invalid values in a special additional bucket).",

python/pyspark/ml/feature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class Bucketizer(JavaTransformer, HasInputCol, HasOutputCol, JavaMLReadable, Jav
357357
typeConverter=TypeConverters.toListFloat)
358358

359359
handleInvalid = Param(Params._dummy(), "handleInvalid",
360-
"how to handle invalid entries containing either NaN or null values. " +
360+
"how to handle invalid entries containing NaN values. " +
361361
"Values outside the splits will always be treated as errors. " +
362362
"Options are 'skip' (filter out rows with invalid values), " +
363363
"'error' (throw an error), or 'keep' (keep invalid values in a special " +

0 commit comments

Comments
 (0)