naufalnashif commited on
Commit
bae16f7
·
1 Parent(s): 3dc9465

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -320,7 +320,8 @@ with st.sidebar :
320
  colormap = st.selectbox("Pilih Warna Wordclouds :", ["Greys", "Purples", "Blues", "Greens", "Oranges", "Reds", "YlOrBr", "YlOrRd", "OrRd", "PuRd", "RdPu", "BuPu", "GnBu", "PuBu", "YlGnBu", "PuBuGn", "BuGn", "YlGn"])
321
  if preference_barchart_date == True:
322
  bar = st.selectbox("Pilih Tampilan Bar Chart :", ("Distribusi Kelas", "Distribusi Kelas Berdasarkan Waktu"), index = 0)
323
- target_year = st.selectbox("Pilih Tahun Bar Chart :", df['Date'].str[:4].unique())
 
324
  st.info('Tekan "Analysis" kembali jika tampilan menghilang', icon = 'ℹ️')
325
  button = st.button("Analysis")
326
 
 
320
  colormap = st.selectbox("Pilih Warna Wordclouds :", ["Greys", "Purples", "Blues", "Greens", "Oranges", "Reds", "YlOrBr", "YlOrRd", "OrRd", "PuRd", "RdPu", "BuPu", "GnBu", "PuBu", "YlGnBu", "PuBuGn", "BuGn", "YlGn"])
321
  if preference_barchart_date == True:
322
  bar = st.selectbox("Pilih Tampilan Bar Chart :", ("Distribusi Kelas", "Distribusi Kelas Berdasarkan Waktu"), index = 0)
323
+ df_target_year = df['Date'].astype(str)
324
+ target_year = st.selectbox("Pilih Tahun Bar Chart :", df_target_year.str[:4].unique())
325
  st.info('Tekan "Analysis" kembali jika tampilan menghilang', icon = 'ℹ️')
326
  button = st.button("Analysis")
327