Github user ueshin commented on the issue:

    https://github.com/apache/spark/pull/18659
  
    @BryanCutler Hmm, I'm not exactly sure the reason why it doesn't work (or 
mine works) but we can use `fillna(0)` before casting like:
    
    ```
    pa.Array.from_pandas(s.fillna(0).astype(t.to_pandas_dtype(), copy=False), 
mask=s.isnull(), type=t)
    ```



---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to