Skip to content

Commit

Permalink
Rename app.py + added caption for seletor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanji-dev committed Oct 11, 2022
1 parent d2c420c commit 6840216
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Hello.py → app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
major_fx = ['EUR','JPY','AUD','NZD','CAD','GBP','CHF']

st.set_page_config(
page_title="COT Datas",
page_title="Rapports COT",
page_icon="📊",
)

Expand All @@ -30,8 +30,12 @@
#Lis le fichier CSV en fonction de la devise sélectionnée
df = pd.read_csv(f"csv_folder/{option.lower()}.csv", index_col='Date')
dates = list(df.index)
start = st.select_slider("Date de début", options = dates, value=(dates[-1]))
st.write("Début:", dates.index(start))

#Input slider pour filter la date range

start = st.select_slider("Sélectionner la date de début", options = dates, value=("04/01/22"))

st.caption("Etudes sur **{}** semaines".format(dates.index(start)+1))

st.table(df.head(dates.index(start)+1).style.background_gradient(axis=0))
@st.cache
Expand Down

0 comments on commit 6840216

Please sign in to comment.