Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/5825#discussion_r29490587
--- Diff: python/pyspark/sql/dataframe.py ---
@@ -1311,6 +1329,28 @@ def fill(self, value, subset=None):
fill.__doc__ = DataFrame.fillna.__doc__
+class DataFrameStatFunctions(object):
+ """Functionality for statistic functions with :class:`DataFrame`.
+ """
+
+ def __init__(self, df):
+ self.df = df
+
+ def cov(self, col1, col2):
--- End diff --
Slightly weird, but probably better than the two falling out of sync.
You can also say
```
:func:`DataFrame.cov` and :func:`DataFrameStatFunctions.cov` are aliases.
```
---
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]