pandas split dataframe into chunks with a condition 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))