EDIT: This question was asked in 2016 and similar questions have been posted on SO years later after the functionality was finally removed, e.g. module 'pandas' has
Looks like the new way is via methods on the DataFrame.rolling class (I guess you're meant to think of it sort of like a groupby):
http://pandas.pydata.org/pandas-docs/version/0.18.0/whatsnew.html