File size: 429 Bytes
0e2c35a
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# Import necessary libraries
import streamlit as st
import pandas as pd

st.title('my shitty app ')

file_path='https://raw.githubusercontent.com/aaubs/ds-master/main/apps/M1-attrition-streamlit/HR-Employee-Attrition-synth.csv'

data=pd.read_csv(file_path)

selected=st.sidebar.selectbox("Select Variable of Interest", ['Department','Gender'])

st.table(data.groupby(['Attrition',selected])['MonthlyIncome'].mean())