update cn.gr_monthly

This commit is contained in:
TerenceLiu98 2021-06-10 13:36:52 +08:00
parent 5922306ab3
commit b5a1d7cfda
1 changed files with 2 additions and 2 deletions

View File

@ -925,8 +925,8 @@ def gr_monthly(): # Government Revenue
df["Date"] = pd.to_datetime(df["Date"], format="%Y-%m-%d") df["Date"] = pd.to_datetime(df["Date"], format="%Y-%m-%d")
df[["Current_Month", "Accumulation"]] = \ df[["Current_Month", "Accumulation"]] = \
df[["Current_Month", "Accumulation"]].astype(float) df[["Current_Month", "Accumulation"]].astype(float)
df[["YoY_Rate", "MoM_rate", "Accum_YoY_Rate"]] = \ df[["YoY_Rate", "MoM_Rate", "Accum_YoY_Rate"]] = \
df[["YoY_Rate", "MoM_rate", "Accum_YoY_Rate"]].astype(float) / 100 df[["YoY_Rate", "MoM_Rate", "Accum_YoY_Rate"]].astype(float) / 100
return df return df