diff --git a/README.md b/README.md index ddf2b0d..c64fd03 100644 --- a/README.md +++ b/README.md @@ -3398,7 +3398,7 @@ def wrangle_data(covid, dow, gold, bitcoin): df = pd.concat([dow, gold, bitcoin], axis=1) df = df.sort_index().interpolate() df = df.rolling(10, min_periods=1, center=True).mean() - df = df.loc['2020-02-23':].iloc[:-2] + df = df.loc['2020-02-23':'2020-11-25'] df = (df / df.iloc[0]) * 100 return pd.concat([covid, df], axis=1, join='inner') diff --git a/index.html b/index.html index 8131202..0042650 100644 --- a/index.html +++ b/index.html @@ -2901,7 +2901,7 @@ line(df, x='Date', y= df = pd.concat([dow, gold, bitcoin], axis=1) df = df.sort_index().interpolate() df = df.rolling(10, min_periods=1, center=True).mean() - df = df.loc['2020-02-23':].iloc[:-2] + df = df.loc['2020-02-23':'2020-11-25'] df = (df / df.iloc[0]) * 100 return pd.concat([covid, df], axis=1, join='inner')