Sohar Samb commited on
Commit
dd4d9a4
·
1 Parent(s): 83be507

test streamlit

Browse files
Files changed (2) hide show
  1. stream_app.py +23 -0
  2. theolex.csv +0 -0
stream_app.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from os import write
2
+ import streamlit as st
3
+ import numpy as np
4
+ import pandas as pd
5
+ import plotly.express as px
6
+ from plotly.subplots import make_subplots
7
+ import plotly.graph_objects as go
8
+ import matplotlib.pyplot as plt
9
+
10
+
11
+
12
+
13
+
14
+ df=pd.read_csv("theolex.csv")
15
+ df
16
+
17
+
18
+ year_option=df['year'].unique().tolist()
19
+
20
+ year=st.selectbox('selectioner une annee', year_option, 0)
21
+ df=df[df['year']==year]
22
+ fig=px.bar(df, x='organisation_type', y='monetary_sanction')
23
+ st.write(fig)
theolex.csv ADDED
The diff for this file is too large to render. See raw diff