awacke1's picture
Update app.py
585de43
raw
history blame
594 Bytes
import pandas as pd
import plotly.express as px
import streamlit as st
# Create a DataFrame with CPT codes, procedures, and expected costs
data = {
'CPT Code': ['99201', '99232', '99233', '99234', '99235'],
'Procedure': ['Office/Outpatient Visit', 'Inpatient Consultation', 'Initial Hospital Care', 'Subsequent Hospital Care', 'Critical Care Services'],
'Expected Cost': [100, 200, 150, 250, 300]
}
df = pd.DataFrame(data)
# Create a histogram with Plotly Express
fig = px.histogram(df, x='Procedure', y='Expected Cost')
# Display the histogram in Streamlit
st.plotly_chart(fig)