Pandas - Rolling slope calculation
问题 How to calculate slope of each columns' rolling(window=60) value, stepped by 5? I'd like to calculate every 5 minutes' value, and I don't need every record's results. Here's sample dataframe and results: df Time A ... N 2016-01-01 00:00 1.2 ... 4.2 2016-01-01 00:01 1.2 ... 4.0 2016-01-01 00:02 1.2 ... 4.5 2016-01-01 00:03 1.5 ... 4.2 2016-01-01 00:04 1.1 ... 4.6 2016-01-01 00:05 1.6 ... 4.1 2016-01-01 00:06 1.7 ... 4.3 2016-01-01 00:07 1.8 ... 4.5 2016-01-01 00:08 1.1 ... 4.1 2016-01-01 00:09