Rozeeeee commited on
Commit
cbc0a6f
·
verified ·
1 Parent(s): 3862544

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -51,16 +51,10 @@ st.title("📊 ESG & 董事席次數據分析儀表板")
51
  data_option = st.sidebar.radio("📂 選擇數據類型", ["ESG 數據", "董事席次數據"])
52
 
53
  if data_option == "ESG 數據" and df_esg is not None:
54
- st.subheader("📌 ESG 數據總覽")
55
- st.write(df_esg.describe())
56
-
57
  st.subheader("📌 ESG 數據預覽")
58
  st.write(df_esg.head(10))
59
 
60
  elif data_option == "董事席次數據" and df_board is not None:
61
- st.subheader("📌 董事席次數據總覽")
62
- st.write(df_board.describe())
63
-
64
  st.subheader("📌 董事席次數據預覽")
65
  st.write(df_board.head(10))
66
 
@@ -90,4 +84,5 @@ if 'filtered_df' in locals() and filtered_df is not None:
90
  fig_pie = px.pie(filtered_df.head(10), names=filtered_df.index[:10], values=col_choice,
91
  title=f"{col_choice} 圓餅圖")
92
  st.plotly_chart(fig_pie, use_container_width=True)
 
93
 
 
51
  data_option = st.sidebar.radio("📂 選擇數據類型", ["ESG 數據", "董事席次數據"])
52
 
53
  if data_option == "ESG 數據" and df_esg is not None:
 
 
 
54
  st.subheader("📌 ESG 數據預覽")
55
  st.write(df_esg.head(10))
56
 
57
  elif data_option == "董事席次數據" and df_board is not None:
 
 
 
58
  st.subheader("📌 董事席次數據預覽")
59
  st.write(df_board.head(10))
60
 
 
84
  fig_pie = px.pie(filtered_df.head(10), names=filtered_df.index[:10], values=col_choice,
85
  title=f"{col_choice} 圓餅圖")
86
  st.plotly_chart(fig_pie, use_container_width=True)
87
+
88