hard20 pts · first answer countspandastime-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())
Discussion 0
Join free to post in the discussion.
Related questions
- Counting missing values in pandasData Scientist
- pandas mean with a missing valueData Scientist
- value_counts with normalizeData Scientist
- groupby with transformData Scientist
- Row count after a mergeData Scientist
- groupby with a missing keyData Scientist
- Validating a forecasting modelData Scientist
- Making a trending series stationaryData Scientist