Spaces:
Runtime error
Runtime error
ardifarizky
commited on
Commit
•
2af4146
1
Parent(s):
a6c4d3d
Update eda.py
Browse files
eda.py
CHANGED
@@ -55,7 +55,7 @@ def run():
|
|
55 |
plt.legend(title='Hotel Type')
|
56 |
plt.xticks(rotation=45)
|
57 |
plt.tight_layout()
|
58 |
-
st.pyplot(
|
59 |
|
60 |
demographics_counts = d[['babies', 'adults', 'children']].sum()
|
61 |
|
@@ -65,7 +65,7 @@ def run():
|
|
65 |
plt.title('Distribution of Guest Demographics')
|
66 |
plt.axis('equal')
|
67 |
|
68 |
-
st.pyplot(
|
69 |
|
70 |
|
71 |
fig, ax = plt.subplots(nrows=2, ncols=2, figsize=(12, 10))
|
@@ -85,7 +85,7 @@ def run():
|
|
85 |
|
86 |
plt.tight_layout()
|
87 |
|
88 |
-
st.pyplot(
|
89 |
|
90 |
plt.figure(figsize=(12, 6))
|
91 |
sns.countplot(data=d, x='market_segment', palette='Set3')
|
@@ -105,7 +105,7 @@ def run():
|
|
105 |
plt.ylabel('Count')
|
106 |
plt.tight_layout()
|
107 |
|
108 |
-
st.pyplot(
|
109 |
|
110 |
# st.write('#### scatterplot berdasarkan Input User')
|
111 |
# pilihan1 = st.selectbox('Pilih column : ', ('age', 'creatinine_phosphokinase','ejection_fraction', 'platelets','serum_creatinine', 'serum_sodium', 'time'),key=1)
|
|
|
55 |
plt.legend(title='Hotel Type')
|
56 |
plt.xticks(rotation=45)
|
57 |
plt.tight_layout()
|
58 |
+
st.pyplot()
|
59 |
|
60 |
demographics_counts = d[['babies', 'adults', 'children']].sum()
|
61 |
|
|
|
65 |
plt.title('Distribution of Guest Demographics')
|
66 |
plt.axis('equal')
|
67 |
|
68 |
+
st.pyplot()
|
69 |
|
70 |
|
71 |
fig, ax = plt.subplots(nrows=2, ncols=2, figsize=(12, 10))
|
|
|
85 |
|
86 |
plt.tight_layout()
|
87 |
|
88 |
+
st.pyplot()
|
89 |
|
90 |
plt.figure(figsize=(12, 6))
|
91 |
sns.countplot(data=d, x='market_segment', palette='Set3')
|
|
|
105 |
plt.ylabel('Count')
|
106 |
plt.tight_layout()
|
107 |
|
108 |
+
st.pyplot()
|
109 |
|
110 |
# st.write('#### scatterplot berdasarkan Input User')
|
111 |
# pilihan1 = st.selectbox('Pilih column : ', ('age', 'creatinine_phosphokinase','ejection_fraction', 'platelets','serum_creatinine', 'serum_sodium', 'time'),key=1)
|