Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/8118#discussion_r38370209
--- Diff: python/pyspark/ml/tests.py ---
@@ -263,6 +263,23 @@ def test_ngram(self):
transformedDF = ngram0.transform(dataset)
self.assertEquals(transformedDF.head().output, ["a b c d", "b c d
e"])
+ def test_stopwordsremover(self):
+ sqlContext = SQLContext(self.sc)
+ data = ["a", "panda"]
+ dataset = sqlContext.createDataFrame([
+ ([data])], ["input"])
--- End diff --
It is just hard to tell what are the rows and what are the fields in this
form, e.g., `[(([["a", "b", "c", "d", "e"]])]` vs `[Row(input=["a", "b", "c",
"d", "e"])]`. It would be nice if you can update both.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]