Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/1725#issuecomment-50954571
This looks good. At first, I was concerned that element-wise operations
might change behavior for calling `stats()` on an RDD of Python lists of
numbers (`sc.parallelize([[1, 0, 1], [4, -1, 4]]).stats()`), but that currently
crashes in Spark 1.0, so this patch won't change users' results.
```python
>>> from numpy import maximum
>>> maximum([1, 0, 1], [4, -1, 4])
array([4, 0, 4])
>>> max([1, 0, 1], [4, -1, 4])
[4, -1, 4]
```
I ran the PySpark tests locally and they passed, so I've merged this.
Thanks Jeremy!
---
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]