pandas split dataframe into chunks with a condition

Solutions on MaxInterview for pandas split dataframe into chunks with a condition by the best coders in the world

showing results for - "pandas split dataframe into chunks with a condition"
Diego
20 Nov 2016
1import numpy as np
2
3np.split(df, *np.where(df['column'] == condition))