-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
35 lines (24 loc) · 1.06 KB
/
app.py
File metadata and controls
35 lines (24 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import pandas as pd
import numpy as np
import streamlit as st
import cleanning
import processing
def main():
st.image("header.png",width=800,use_column_width=True)
st.sidebar.title(" Menu")
loaded_header = st.sidebar.subheader("⭕️ Data not loaded")
df = processing.check_file(st.sidebar.file_uploader('Select file (.csv)', type = 'csv'))
if df is not None:
create_layout(df,loaded_header)
def create_layout(df,header):
header.subheader("✔️Data is loaded")
app_mode = st.sidebar.selectbox("Please select a page", ["---",
"Cleanning Data",
"Data Exploration",
"Player Statistics",
"Game Statistics",
"Head to Head"])
if app_mode == 'Cleanning Data':
cleanning.load_page(df)
if __name__ == "__main__":
main()