Skip to content

Commit 3e6121e

Browse files
committed
COSMIT fix a docstring in feature_extraction.text
I amended aeeda9f to get the tests to pass, but forgot to change this one.
1 parent 5bff742 commit 3e6121e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sklearn/feature_extraction/text.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,7 @@ def _get_hasher(self):
441441

442442

443443
def _document_frequency(X):
444-
"""Count the number of non-zero values for each feature in X.
445-
446-
If X is sparse, its data must not contain explicit zero values.
447-
"""
444+
"""Count the number of non-zero values for each feature in csc_matrix X."""
448445
return np.diff(X.indptr)
449446

450447

0 commit comments

Comments
 (0)