[SPARK-8339] [PYSPARK] integer division for python 3
[SPARK-8339] [PYSPARK] integer division for python 3

Itertools islice requires an integer for the stop argument.  Switching to integer division here prevents a ValueError when vs is evaluated above.

davies

This is my original work, and I license it to the project.

Author: Kevin Conor <kevin@discoverybayconsulting.com>

Closes #6794 from kconor/kconor-patch-1 and squashes the following commits:

da5e700 [Kevin Conor] Integer division for batch size

(cherry picked from commit fdf63f12490c674cc1877ddf7b70343c4fd6f4f1)
Signed-off-by: Davies Liu <c437f8b7af73b0a10ecac061712ff9de6d41089e@databricks.com>

andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap