awacke1's picture
Create app.py
27bdf15
raw
history blame contribute delete
351 Bytes
import streamlit as st
import plotly.express as px
import pandas as pd
st.title("Tree Map Visualization")
st.text("Upload your CSV file:")
csv_file = st.file_uploader("Choose a CSV file", type="csv")
if csv_file is not None:
data = pd.read_csv(csv_file)
fig = px.treemap(data, path=['Column1','Column2','Column3'])
st.plotly_chart(fig)