sadhen commented on a change in pull request #31735:
URL: https://github.com/apache/spark/pull/31735#discussion_r599179400
##########
File path: python/pyspark/sql/pandas/serializers.py
##########
@@ -155,12 +157,18 @@ def _create_batch(self, series):
from pandas.api.types import is_categorical_dtype
# Make input conform to [(series1, type1), (series2, type2), ...]
if not isinstance(series, (list, tuple)) or \
- (len(series) == 2 and isinstance(series[1], pa.DataType)):
+ (len(series) == 2 and isinstance(series[1], (pa.DataType,
DataType))):
Review comment:
refactored
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]