Skip to content

Commit 56e708f

Browse files
author
VinceShieh
committed
doc refine
Signed-off-by: VinceShieh <[email protected]>
1 parent c5e46fb commit 56e708f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/pyspark/ml/feature.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,9 +1184,9 @@ class QuantileDiscretizer(JavaEstimator, HasInputCol, HasOutputCol, JavaMLReadab
11841184
NaN handling: Note also that
11851185
QuantileDiscretizer will raise an error when it finds NaN values in the dataset, but the user
11861186
can also choose to either keep or remove NaN values within the dataset by setting
1187-
`handleInvalid`. If the user chooses to keep NaN values, they will be handled specially and
1188-
placed into their own bucket, for example, if 4 buckets are used, then non-NaN data will be
1189-
put into buckets[0-3], but NaNs will be counted in a special bucket[4].
1187+
:py:attr:`handleInvalid` parameter. If the user chooses to keep NaN values, they will be
1188+
handled specially and placed into their own bucket, for example, if 4 buckets are used, then
1189+
non-NaN data will be put into buckets[0-3], but NaNs will be counted in a special bucket[4].
11901190
11911191
Algorithm: The bin ranges are chosen using an approximate algorithm (see the documentation for
11921192
:py:meth:`~.DataFrameStatFunctions.approxQuantile` for a detailed description).

0 commit comments

Comments
 (0)