BryanCutler 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_r293489913
##########
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)
# TODO: need cast after Arrow conversion, ns values cause
error with pandas 0.19.2
Review comment:
Let's fix this one up in another PR.
----------------------------------------------------------------
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]