-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
57 lines (46 loc) · 1.74 KB
/
app.py
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""
app.py : Main
"""
## Streamlit & UI
import streamlit as st
from streamlit_option_menu import option_menu
from PIL import Image
## Importing pages
from content.intro import introduction
from content.exploration import exploration
from content.preparation import preparation
from content.visualisation import visualisation
from content.modelisation import modelisation
from content.resources import resources
## Page title & favicon
st.set_page_config(page_title = "Retail Sales Analysis", page_icon = "images/favicon.png")
## Sidebar menu
with st.sidebar:
image_side = Image.open("images/jedha.png")
st.image(image_side)
st.header("Walmart Sales Prediction")
choice = option_menu(
menu_title = "Summary",
options = ["Introduction",
"Data Exploration",
"Data Processing",
"Analysis and visualization",
"Modeling and prediction",
"Resources"],
default_index = 0)
# Author
st.header("Author :")
st.markdown('Christophe NORET [<img src="https://content.linkedin.com/content/dam/me/business/en-us/amp/brand-site/v2/bg/LI-Bug.svg.original.svg" width=25>](http://www.linkedin.com/in/christophenoret) [<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" width=25>](https://github.com/cnoret)', unsafe_allow_html=True)
## Main Menu
if choice == "Introduction":
introduction()
elif choice == "Data Exploration":
exploration()
elif choice == "Data Processing":
preparation()
elif choice == "Analysis and visualization":
visualisation()
elif choice == "Modeling and prediction":
modelisation()
else:
resources()