pandas split dataframe into chunks code example
Example: pandas split dataframe into chunks with a condition
import numpy as np
np.split(df, *np.where(df['column'] == condition))
import numpy as np
np.split(df, *np.where(df['column'] == condition))