nlpblogs commited on
Commit
62d204f
·
verified ·
1 Parent(s): 20792b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ if upload_file is not None:
99
  df.columns = new_columns
100
  st.dataframe(df, key="csv_dataframe")
101
  fig = px.treemap(df, path=[px.Constant("all"), 'column_1', 'column_2'],
102
- values='column_1', color='column_2')
103
  fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
104
  st.subheader("Tree map", divider = "red")
105
  st.plotly_chart(fig)
 
99
  df.columns = new_columns
100
  st.dataframe(df, key="csv_dataframe")
101
  fig = px.treemap(df, path=[px.Constant("all"), 'column_1', 'column_2'],
102
+ color='column_2')
103
  fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
104
  st.subheader("Tree map", divider = "red")
105
  st.plotly_chart(fig)