title: rolling window with 50% overlapping on window size in pandas
body: <p>I have a data frame like this which is imported from a CSV.
  <a href="https://i.stack.imgur.com/Xy67r.jpg" rel="nofollow noreferrer">Data frame</a></p>
  
  <p>I would like to create a sliding window of size 256 with overlapping of 50%. 
  For example, window1 should contain data from index 0-255, window2 should contain data from index 128-383 and so on until all the data is split in their respective windows.
  I am trying rolling.windows from pandas to create windows without any success.
  I want to achieve something like this.
  <a href="https://i.stack.imgur.com/aTCKs.jpg" rel="nofollow noreferrer">Overlapping windows</a>
  How can I do that using the optimized methods included in Pandas or Numpy?</p>