In pandas, how can I write a rolling window that has preceding as well as following rows?
for example, a sql rolling window can be written as follows: