Github user ueshin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17865#discussion_r121491673
  
    --- Diff: python/pyspark/sql/functions.py ---
    @@ -109,15 +117,29 @@ def _():
         'rint': 'Returns the double value that is closest in value to the 
argument and' +
                 ' is equal to a mathematical integer.',
         'signum': 'Computes the signum of the given value.',
    -    'sin': 'Computes the sine of the given value.',
    -    'sinh': 'Computes the hyperbolic sine of the given value.',
    -    'tan': 'Computes the tangent of the given value.',
    -    'tanh': 'Computes the hyperbolic tangent of the given value.',
    -    'toDegrees': '.. note:: Deprecated in 2.1, use degrees instead.',
    -    'toRadians': '.. note:: Deprecated in 2.1, use radians instead.',
    +    'sin': 'Computes the sine of the given value. Units in radians',
    +    'sinh': 'Computes the hyperbolic sine of the given value. Units in 
radians.',
    +    'tan': 'Computes the tangent of the given value. Units in radians.',
    +    'tanh': 'Computes the hyperbolic tangent of the given value. Units in 
radians.',
    +    'toDegrees': '.. note:: Deprecated in 2.1, use :func:`degrees` 
instead.',
    +    'toRadians': '.. note:: Deprecated in 2.1, use :func:`radians` 
instead.',
         'bitwiseNOT': 'Computes bitwise not.',
     }
     
    +_collect_list_doc = """
    +    Aggregate function: returns a list of objects with duplicates.
    +
    +    >>> df2 = spark.createDataFrame([('Alice', 2), ('Bob', 5),('Alice', 
99)], ('name', 'age'))
    +    >>> df2.agg(collect_list('name')).collect()
    +    [Row(collect_list(name)=[u'Alice', u'Bob', u'Alice'])]
    +    """
    +_collect_set_doc = """
    +    Aggregate function: returns a set of objects with duplicate elements 
eliminated.
    +
    +    >>> df2 = spark.createDataFrame([('Alice', 2), ('Bob', 5),('Alice', 
99)], ('name', 'age'))
    --- End diff --
    
    ditto.


---
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]

Reply via email to