Github user BryanCutler commented on the issue:

    https://github.com/apache/spark/pull/18659
  
    @ueshin I haven't had much luck with the casting workaround:
    ```
    pa.Array.from_pandas(s.astype(t.to_pandas_dtype(), copy=False), 
mask=s.isnull(), type=t)
    ```
    It appears that it forces a copy for floating point -> integer and then 
checks if any NaNs, so I get the error `ValueError: Cannot convert non-finite 
values (NA or inf) to integer`.  I'm using Pandas 0.20.1, but also tried 0.19.4 
with the same result, any ideas?


---

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

Reply via email to