spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HyukjinKwon <>
Subject [GitHub] spark pull request #17865: [SPARK-20456][Docs] Add examples for functions co...
Date Mon, 12 Jun 2017 22:38:15 GMT
Github user HyukjinKwon commented on a diff in the pull request:
    --- Diff: python/pyspark/sql/ ---
    @@ -206,17 +227,20 @@ def _():
     def approxCountDistinct(col, rsd=None):
    -    .. note:: Deprecated in 2.1, use approx_count_distinct instead.
    +    .. note:: Deprecated in 2.1, use :func:`approx_count_distinct` instead.
         return approx_count_distinct(col, rsd)
     def approx_count_distinct(col, rsd=None):
    -    """Returns a new :class:`Column` for approximate distinct count of ``col``.
    +    """Returns a new :class:`Column` for approximate distinct count of column `col`.
    -    >>> df.agg(approx_count_distinct(df.age).alias('c')).collect()
    -    [Row(c=2)]
    +    :param rsd: Residual (float). The approximate count will be within this fraction
of the true
    --- End diff --
    For this one, let's add the contents in Scala/R one too -
    This one in Scala/R look already having the param contents to match with.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message