def splitDataFrameIntoSmaller(df, chunkSize=10000):
    listOfDf = list()
numberChunks = len(df) // chunkSize + 1
for i in range(numberChunks):
    listOfDf.append(df[i * chunkSize:(i + 1) * chunkSize])
return listOfDf
Split a large pandas dataframe