title: pandas returning header instead of values
body: <p>Im trying to create a list of a sliding window from a pandas dataframe but instead of giving me the specific values it only returns the header. Why is this happening and what can I do to get around this?</p>
  
  <pre><code>import pandas as pd
  
  batch_size = 3
  data = pd.DataFrame([1,2,3,4,5,6,7,8,9])
  
  
  def process(data):
      batches = []
      for i in range(len(data) - batch_size + 1):
          batches.append(list(data.iloc[i:i + batch_size]))
  
      return batches
  
  process(data)
  </code></pre>