title: Calculating max/min for every n rows of dataframe in python
body: <p>I want to calculate the min/max for every n rows of a df, say 10, but using df.rolling(10).max() gives the values for rows 0-9, 1-10, 2-11 etc. I want 0-9, 10-19, 20-29 etc</p>
  
  <p>Is there a neat way of doing this for a large dataset?</p>
  
  <p>Thanks</p>