Spaces:
Build error
Build error
Upload app.py
Browse files48 unmodified lines49505152535428 unmodified lines8384858687888948 unmodified lines# Drop rows with missing GenLU or crop_name just in casetreemap_data = treemap_data.dropna(subset=['GenLU', 'crop_name'])# Create treemaptreemap = px.treemap(28 unmodified linesst.markdown("""This dataset does **not exceed GitHub’s file size limit**, and can be hosted directly within this HuggingFace Space. No hosting revision needed at this time.""")st.write("Treemap data:", treemap_data.head())st.write("Treemap shape:", treemap_data.shape)48 unmodified lines4950515253545556575828 unmodified lines878889909148 unmodified lines# Drop rows with missing GenLU or crop_name just in casetreemap_data = treemap_data.dropna(subset=['GenLU', 'crop_name'])treemap_data = (treemap_data.groupby(['GenLU', 'crop_name'], as_index=False).agg({'field_count': 'sum'}))# Create treemaptreemap = px.treemap(28 unmodified linesst.markdown("""This dataset does **not exceed GitHub’s file size limit**, and can be hosted directly within this HuggingFace Space. No hosting revision needed at this time.""")
app.py+4-2