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 i in range(0, df.shape[0], n)]
I get some chunk_lists of size 663 and some of 664. How do I get all dataframes to split into exactly 663 parts?