icexelloss commented on a change in pull request #24844: [SPARK-28003][PYTHON]
Allow NaT values when creating Spark dataframe from pandas with Arrow
URL: https://github.com/apache/spark/pull/24844#discussion_r293121417
##########
File path: python/pyspark/serializers.py
##########
@@ -296,7 +296,7 @@ def create_array(s, t):
mask = s.isnull()
# Ensure timestamp series are in expected form for Spark internal
representation
if t is not None and pa.types.is_timestamp(t):
- s = _check_series_convert_timestamps_internal(s.fillna(0),
self._timezone)
+ s = _check_series_convert_timestamps_internal(s,
self._timezone)
Review comment:
Yeah pandas 0.19.2 doesn't work with pyarrow 0.12.1. I cannot run arrow
tests with pandas 0.19.2 anymore.
Since we are requiring min arrow version to be 0.12, it means pandas version
0.19.2 is not supported if the user wants to use Arrow.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]