Closed david26694 closed 2 years ago
Changing the last line for subset_df.births.rolling(10).mean()
works, I still don't understand why it doesn't work for the entire dataframe though
Let's investigate! I just copied and pasted the snippet you used and it seemed to run just fine. My pandas version is '1.2.1', could you try that?
Works for me in the latest pandas version (1.3.4
), but it didn't work in 1.1.5
, which is the latest supported in python 3.7.0. Time to upgrade I guess!
I've re-opened the issue as a reminder to explicitly list the pandas version that I've been using.
First of all, thanks for a much-needed course 🥇
The following code, copied from https://calmcode.io/pandas-datetime/rolling-stats.html:
is giving me the following error:
My pandas version is 1.0.1. Am I missing something?