Skip to content

Commit 135ade9

Browse files
committed
[MINOR][ML] fix doc warnings
Without an empty line, sphinx will treat doctest as docstring. holdenk ~~~ /Users/meng/src/spark/python/pyspark/ml/feature.py:docstring of pyspark.ml.feature.CountVectorizer:3: ERROR: Undefined substitution referenced: "label|raw |vectors | +-----+---------------+-------------------------+ |0 |[a, b, c] |(3,[0,1,2],[1.0,1.0,1.0])". /Users/meng/src/spark/python/pyspark/ml/feature.py:docstring of pyspark.ml.feature.CountVectorizer:3: ERROR: Undefined substitution referenced: "1 |[a, b, b, c, a]|(3,[0,1,2],[2.0,2.0,1.0])". ~~~ Author: Xiangrui Meng <[email protected]> Closes #9188 from mengxr/py-count-vec-doc-fix.
1 parent 4586169 commit 135ade9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/pyspark/ml/feature.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class CountVectorizer(JavaEstimator, HasInputCol, HasOutputCol):
178178
.. note:: Experimental
179179
180180
Extracts a vocabulary from document collections and generates a :py:attr:`CountVectorizerModel`.
181+
181182
>>> df = sqlContext.createDataFrame(
182183
... [(0, ["a", "b", "c"]), (1, ["a", "b", "b", "c", "a"])],
183184
... ["label", "raw"])

0 commit comments

Comments
 (0)