mirror of https://github.com/01-edu/Branch-AI.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1017 B
1017 B
-
This question is validated if the output of is
2010-01-01 0 2010-01-02 1 2010-01-03 2 2010-01-04 3 2010-01-05 4 ... 2020-12-27 4013 2020-12-28 4014 2020-12-29 4015 2020-12-30 4016 2020-12-31 4017 Freq: D, Name: integer_series, Length: 4018, dtype: int64
The best solution uses
pd.date_range
to generate the index andrange
to generate the integer series. -
This question is validated if the output is:
2010-01-01 NaN 2010-01-02 NaN 2010-01-03 NaN 2010-01-04 NaN 2010-01-05 NaN ... 2020-12-27 4010.0 2020-12-28 4011.0 2020-12-29 4012.0 2020-12-30 4013.0 2020-12-31 4014.0 Freq: D, Name: integer_series, Length: 4018, dtype: float64
If the
NaN
values have been dropped the solution is also accepted. The solution usesrolling().mean()
.