Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,8 +113,10 @@ def perform_analysis(data):
|
|
| 113 |
if not categorical_columns.empty:
|
| 114 |
st.write("๋ฒ์ฃผํ ๋ณ์ ๋ง๋ ๊ทธ๋ํ:")
|
| 115 |
for column in categorical_columns:
|
| 116 |
-
|
| 117 |
-
|
|
|
|
|
|
|
| 118 |
st.plotly_chart(fig)
|
| 119 |
|
| 120 |
def main():
|
|
|
|
| 113 |
if not categorical_columns.empty:
|
| 114 |
st.write("๋ฒ์ฃผํ ๋ณ์ ๋ง๋ ๊ทธ๋ํ:")
|
| 115 |
for column in categorical_columns:
|
| 116 |
+
value_counts = data[column].value_counts().reset_index()
|
| 117 |
+
value_counts.columns = ['category', 'count']
|
| 118 |
+
fig = px.bar(value_counts, x='category', y='count', title=f'{column} ๋ถํฌ')
|
| 119 |
+
fig.update_layout(xaxis_title=column, yaxis_title='๊ฐ์')
|
| 120 |
st.plotly_chart(fig)
|
| 121 |
|
| 122 |
def main():
|