update cn.gr_monthly
This commit is contained in:
parent
5922306ab3
commit
b5a1d7cfda
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue