Spaces:
Sleeping
Sleeping
| # 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()) |