title: Select values from pandas dataframe at intervals
body: <p>I'm trying to run a calculation that requires a number of inputs (10) at one time from a list of a lot (hundreds) of inputs. </p>
  
  <p>I have a dataframe of random values:</p>
  
  <pre><code>s = pd.Series(np.random.randint(0,1000,size=240))
  </code></pre>
  
  <p>I want to take the first 10 values and stick them in a list, then run the calculation. Then I want to take the next 10 values from the dataframe and add those to a new list and run that calculation again. </p>
  
  <p>How do you do this in Pandas? </p>