Spaces:
Runtime error
Runtime error
File size: 351 Bytes
27bdf15 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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) |