HyukjinKwon commented on a change in pull request #28957:
URL: https://github.com/apache/spark/pull/28957#discussion_r453468016



##########
File path: python/pyspark/sql/pandas/serializers.py
##########
@@ -180,7 +173,7 @@ def create_array(s, t):
                 if len(s) == 0 and len(s.columns) == 0:
                     arrs_names = [(pa.array([], type=field.type), field.name) 
for field in t]
                 # Assign result columns by schema name if user labeled with 
strings
-                elif self._assign_cols_by_name and any(isinstance(name, 
basestring)
+                elif self._assign_cols_by_name and any(isinstance(name, str)

Review comment:
       and yes, maybe it should better be in a separate 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]



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

Reply via email to