Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,17 +88,8 @@ elif page == "์ฐ๋ น๋ ๋ฐ ์ฑ๋ณ์ ๋ฐ๋ฅธ ์์ 3๊ฐ ์ฅ๋ฅด":
|
|
| 88 |
st.write(f"{selected_age} - {selected_gender}์ ๋ฐ๋ฅธ ์ฃผ์ ๋ถ๋ฅ๋ช
:")
|
| 89 |
st.write(genre_list)
|
| 90 |
|
| 91 |
-
#
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
# ํํธ๋งต ์๊ฐํ์ฉ ๋ฐ์ดํฐํ๋ ์ ์์ฑ
|
| 95 |
-
df_pivot = genre_counts.pivot_table(index='์ฃผ์ ๋ถ๋ฅ๋ช
', values='๋์ถ๊ฑด์', aggfunc='sum')
|
| 96 |
|
| 97 |
-
#
|
| 98 |
-
|
| 99 |
-
sns.heatmap(df_pivot, annot=True, cmap='YlGnBu', cbar=True, ax=ax)
|
| 100 |
-
ax.set_title('์ ์ฒด ์ฐ๋ น๋ ๋ฐ ์ฑ๋ณ๋ณ ์ฅ๋ฅด๋ณ ๋์ถ ๊ฑด์ ํํธ๋งต')
|
| 101 |
-
ax.set_xlabel('๋์ถ๊ฑด์')
|
| 102 |
-
ax.set_ylabel('์ฅ๋ฅด')
|
| 103 |
-
plt.xticks(rotation=90)
|
| 104 |
-
st.pyplot(fig)
|
|
|
|
| 88 |
st.write(f"{selected_age} - {selected_gender}์ ๋ฐ๋ฅธ ์ฃผ์ ๋ถ๋ฅ๋ช
:")
|
| 89 |
st.write(genre_list)
|
| 90 |
|
| 91 |
+
# ์ด๋ฏธ์ง ํ์ผ ๊ฒฝ๋ก
|
| 92 |
+
image_path = r'heat_map.pdf'
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
+
# ์ด๋ฏธ์ง ์
๋ก๋ ๋ฐ ํ์
|
| 95 |
+
st.image(image_path, caption="ํํธ๋งต", use_column_width=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|