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

    https://github.com/apache/spark/pull/9977#discussion_r45920666
  
    --- Diff: python/pyspark/sql/functions.py ---
    @@ -305,6 +297,10 @@ def input_file_name():
     @since(1.6)
     def isnan(col):
         """An expression that returns true iff the column is NaN.
    +
    +    >>> df = sqlContext.createDataFrame([(1.0, float('nan')), 
(float('nan'), 2.0)], ("a", "b"))
    +    >>> df.select(isnan("a").alias("r")).collect()
    --- End diff --
    
    can you test both string names and columns? e.g.
    ```python
    df.select(isnan("a").alias("r1"), isnan(df.a).alias("r2")).collect()
    ```


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