ardifarizky commited on
Commit
44ff538
1 Parent(s): 2af4146

Update eda.py

Browse files
Files changed (1) hide show
  1. eda.py +4 -13
eda.py CHANGED
@@ -6,7 +6,7 @@ import plotly.express as px
6
  from PIL import Image
7
 
8
  st.set_page_config(
9
- page_title= 'FIFA 2022',
10
  layout='wide',
11
  initial_sidebar_state='expanded'
12
  )
@@ -24,9 +24,8 @@ st.markdown(hide_streamlit_style, unsafe_allow_html=True)
24
 
25
  def run():
26
 
27
- st.title('Heart Failure Prediction')
28
- # st.subheader('Heart Failure Prediction Exploratory Data Analysis')
29
- # #Show Dataframe
30
  d = pd.read_csv('hotel_bookings.csv')
31
 
32
  fig, ax = plt.subplots(nrows=2, ncols=2, figsize=(15, 10))
@@ -106,15 +105,7 @@ def run():
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)
112
- # pilihan2 = st.selectbox('Pilih column : ', ('age', 'creatinine_phosphokinase','ejection_fraction', 'platelets','serum_creatinine', 'serum_sodium', 'time'),key=2)
113
- # pilihan3 = st.selectbox('Pilih column : ', ('anaemia', 'diabetes','high_blood_pressure', 'sex','smoking', 'DEATH_EVENT'),key=3)
114
- # fig = plt.figure(figsize=(15, 5))
115
- # sns.scatterplot(data=d,x=d[pilihan1],y=d[pilihan2],hue=d[pilihan3])
116
- # st.pyplot(fig)
117
-
118
 
119
  if __name__ == '__main__':
120
  run()
 
6
  from PIL import Image
7
 
8
  st.set_page_config(
9
+ page_title= 'EDA',
10
  layout='wide',
11
  initial_sidebar_state='expanded'
12
  )
 
24
 
25
  def run():
26
 
27
+ st.title('EDA')
28
+
 
29
  d = pd.read_csv('hotel_bookings.csv')
30
 
31
  fig, ax = plt.subplots(nrows=2, ncols=2, figsize=(15, 10))
 
105
  plt.tight_layout()
106
 
107
  st.pyplot()
108
+
 
 
 
 
 
 
 
 
109
 
110
  if __name__ == '__main__':
111
  run()