Tryfonas's picture
Upload folder using huggingface_hub
0e2c35a verified
raw
history blame contribute delete
429 Bytes
# 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())