gaogaotiantian commented on code in PR #54312:
URL: https://github.com/apache/spark/pull/54312#discussion_r2825048706
##########
python/pyspark/sql/conversion.py:
##########
@@ -1489,13 +1490,20 @@ def convert_numpy(
if v is not None
else None
)
+ elif isinstance(spark_type, VariantType):
+ series = arr.to_pandas(date_as_object=True)
+ series = series.apply(
+ cast(
Review Comment:
Okay this is actually not a false alarm (not saying it's wrong). We are
trying to create a pandas series with a pyspark type right? So the type of that
pandas series would be a generic `object` if I understand correctly? Is that a
common pattern for pandas? You are the expert for pandas so that's really a
question.
--
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]