HyukjinKwon commented on a change in pull request #28928:
URL: https://github.com/apache/spark/pull/28928#discussion_r445977049
##########
File path: python/pyspark/sql/pandas/conversion.py
##########
@@ -413,7 +413,7 @@ def _create_from_pandas_with_arrow(self, pdf, schema,
timezone):
# Slice the DataFrame to be batched
step = -(-len(pdf) // self.sparkContext.defaultParallelism) # round
int up
- pdf_slices = (pdf[start:start + step] for start in xrange(0, len(pdf),
step))
+ pdf_slices = (pdf.iloc[start:start + step] for start in xrange(0,
len(pdf), step))
Review comment:
As far as I can tell, yes.
----------------------------------------------------------------
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]