Skip to content

Commit

Permalink
FeatureHasher issue dask#963
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-methodical committed Feb 9, 2023
1 parent c59fc98 commit 91daec6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/feature_extraction/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
)
def test_basic(vect, container):
b = db.from_sequence(JUNK_FOOD_DOCS, npartitions=2)
if container == "series":
if type(vect) == dask_ml.feature_extraction.text.FeatureHasher:
b = b.str.split()
elif container == "series":
b = b.to_dataframe(columns=["text"])["text"]
elif container == "array":
b = b.to_dataframe(columns=["text"])["text"].values
Expand Down

0 comments on commit 91daec6

Please sign in to comment.