This commit is contained in:
sam 2025-10-05 21:06:54 +08:00
parent 8a4ca05155
commit 592cf6f7ea

View File

@ -93,6 +93,9 @@ def render_portfolio_config() -> None:
["行业敞口上限", f"{max_sector_exposure:.1%}"],
], columns=["配置项", "当前值"])
# 统一转为字符串以避免 Arrow 在混合类型列上报错
df["当前值"] = df["当前值"].astype(str)
st.table(df.set_index("配置项"))
# 保存按钮