📜  使用提供的权重随机拆分此 DataFrame - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:43.857000             🧑  作者: Mango

代码示例1
# Randomly splits this DataFrame with the provided weights

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

splits[1].count()
# 3