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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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))