Spaces:
Running
Running
File size: 502 Bytes
9b9f848 6387a15 3113bb9 9b9f848 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import streamlit as st
import numpy as np
import plotly.express as px
import pandas as pd
st.set_page_config(page_title="BLOOM Corpus Treemap",layout='wide')
df = pd.read_pickle('bloom_dataset.pkl')
fig = px.treemap(df, path=[px.Constant("ROOTS"), 'Macroarea', 'Family', 'Genus', 'Language', 'dataset_name'],
values='num_bytes', maxdepth=4)
fig.update_traces(root_color="pink")
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
st.plotly_chart(fig, use_container_width=True)
|