update
This commit is contained in:
parent
8a4ca05155
commit
592cf6f7ea
@ -93,6 +93,9 @@ def render_portfolio_config() -> None:
|
|||||||
["行业敞口上限", f"{max_sector_exposure:.1%}"],
|
["行业敞口上限", f"{max_sector_exposure:.1%}"],
|
||||||
], columns=["配置项", "当前值"])
|
], columns=["配置项", "当前值"])
|
||||||
|
|
||||||
|
# 统一转为字符串以避免 Arrow 在混合类型列上报错
|
||||||
|
df["当前值"] = df["当前值"].astype(str)
|
||||||
|
|
||||||
st.table(df.set_index("配置项"))
|
st.table(df.set_index("配置项"))
|
||||||
|
|
||||||
# 保存按钮
|
# 保存按钮
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user