You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yikun Jiang (Jira)" <ji...@apache.org> on 2021/10/16 03:23:00 UTC

[jira] [Commented] (SPARK-36230) hasnans for Series of Decimal(`NaN`)

    [ https://issues.apache.org/jira/browse/SPARK-36230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429514#comment-17429514 ] 

Yikun Jiang commented on SPARK-36230:
-------------------------------------

working on this

> hasnans for Series of Decimal(`NaN`)
> ------------------------------------
>
>                 Key: SPARK-36230
>                 URL: https://issues.apache.org/jira/browse/SPARK-36230
>             Project: Spark
>          Issue Type: Sub-task
>          Components: PySpark
>    Affects Versions: 3.2.0
>            Reporter: Xinrong Meng
>            Priority: Major
>
> {code:java}
> >>> import pandas as pd
> >>> pser = pd.Series([Decimal('0.1'), Decimal('NaN')])
> >>> pser
> 0    0.1
> 1    NaN
> dtype: object
> >>> psser = ps.from_pandas(pser)
> >>> psser
> 0     0.1
> 1    None
> dtype: object
> >>> psser.hasnans
> False
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org