update cn.fgr_monthly

This commit is contained in:
TerenceLiu98 2021-06-10 13:26:31 +08:00
parent ca2ba74ef3
commit 5922306ab3
1 changed files with 3 additions and 5 deletions

View File

@ -778,14 +778,12 @@ def fgr_monthly(): # Forex and Gold Reserve
df.replace("", np.nan, inplace=True)
df["Date"] = pd.to_datetime(df["Date"], format="%Y-%m-%d")
df[["Forex", "Gold"]] = \
df["Forex", "Gold"].astype(float)
df[["Forex", "Gold"]].astype(float)
df[["Forex_YoY_Rate", "Gold_YoY_Rate",
"Forex_MoM_Rate", "Gold_MoM_Rate"]] = \
df["Forex_YoY_Rate", "Gold_YoY_Rate",
"Forex_MoM_Rate", "Gold_MoM_Rate"].astype(float) / 100
df[["Forex_YoY_Rate", "Gold_YoY_Rate",
"Forex_MoM_Rate", "Gold_MoM_Rate"]].astype(float) / 100
return df
# TODO: SPECIAL CASE
def ctsf_monthly(): # Client Transaction Settlement Funds
"""