zhengruifeng commented on code in PR #53730:
URL: https://github.com/apache/spark/pull/53730#discussion_r2672008121


##########
python/pyspark/sql/pandas/serializers.py:
##########
@@ -365,6 +365,7 @@ def arrow_to_pandas(
         pandas_options = {
             "date_as_object": True,
             "coerce_temporal_nanoseconds": True,
+            "integer_object_nulls": True,

Review Comment:
   ```
   In [50]: arr = pa.array([1,2,3,None])
   
   In [51]: arr.to_pandas()
   Out[51]:
   0    1.0
   1    2.0
   2    3.0
   3    NaN
   dtype: float64
   
   In [52]: arr.to_pandas(integer_object_nulls=True)
   Out[52]:
   0       1
   1       2
   2       3
   3    None
   dtype: object
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to