Answers for "Randomly splits this DataFrame with the provided weights"

0

Randomly splits this DataFrame with the provided weights

# Randomly splits this DataFrame with the provided weights

splits = df4.randomSplit([1.0, 2.0], 24)
splits[0].count()
# 1

splits[1].count()
# 3
Posted by: Guest on April-21-2020

Code answers related to "Randomly splits this DataFrame with the provided weights"

Python Answers by Framework

Browse Popular Code Answers by Language