split multiple dataframes into exactly 663 parts

前端 未结 0 605
有刺的猬
有刺的猬 2021-01-06 16:27

How to split a dataframe into exactly n parts, irrespective of size of the frame?

if I try:
n = int(len(df.index)/662)
chunk_list = [df [ i : i+n ] for

相关标签:
回答
  • 消灭零回复
提交回复
热议问题