📅  最后修改于: 2022-03-11 14:45:43.857000             🧑  作者: Mango
# Randomly splits this DataFrame with the provided weights
splits = df4.randomSplit([1.0, 2.0], 24)
splits[0].count()
# 1
splits[1].count()
# 3