-
Notifications
You must be signed in to change notification settings - Fork 25k
Expand file tree
/
Copy pathstreamlit_app.py
More file actions
32 lines (27 loc) · 1.08 KB
/
streamlit_app.py
File metadata and controls
32 lines (27 loc) · 1.08 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 altair as alt
import numpy as np
import pandas as pd
import streamlit as st
import eda_view as view1
import prediction_view as view2
import streamlit_option_menu
from streamlit_option_menu import option_menu
st.set_page_config(layout="wide",
initial_sidebar_state="expanded")
alt.themes.enable("dark")
with st.sidebar:
st.title("Gestión de incidencias")
selected = option_menu(
menu_title = "Menu",
options = ['Overview', 'Nueva incidencia'],
icons = ["house","gear"],
menu_icon = "cast",
default_index = 0,
)
#df = pd.read_excel('/Users/carlotapersonal/Library/CloudStorage/OneDrive-UFV/CURSO_5/PFG/Code/proyecto-fin-de-grado-2024-2-carlotagomezr/data-analysis/eda/dataset_post_EDA.xlsx')
df = pd.read_excel('/Users/carlotro/Desktop/Escritorio/Personal-Carlota/UFV/PFG/APP-REPO/dataset_post_EDA.xlsx')
df['reassingment_count_bool'] = df['reassignment_count'].apply(lambda x: 1 if x > 0 else 0) # indicar si ha habido reasignacion o no
if selected == 'Overview':
view1.run(df)
elif selected == 'Nueva incidencia':
view2.run(df)