Skip to content
RED SAG Skills
hardStudy question · answer published in Python interview questions, so no pointspandastime-series

Rolling mean at the edges

What does this code print?

import pandas as pd

s = pd.Series([10, 20, 30, 40, 50])
print(s.rolling(3).mean().iloc[[1, 4]].tolist())
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions