Github user davies commented on a diff in the pull request:
https://github.com/apache/spark/pull/4592#discussion_r24719364
--- Diff: python/pyspark/sql/dataframe.py ---
@@ -714,30 +714,45 @@ def count(self):
[Row(age=2, count=1), Row(age=5, count=1)]
"""
- @dfapi
- def mean(self):
+ def mean(self, *cols):
--- End diff --
There are lots of duplicated codes here, you could update the `dfapi` to
take any number of cols as arguments, then have a different implementation for
`count`.
---
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]