mathiassandnes Claude Opus 4.5 commited on
Commit
2e7dc8e
·
1 Parent(s): 85fcbc2

Fix st.dataframe width parameter (use_container_width)

Browse files

st.dataframe() uses use_container_width=True, not width="stretch"
(width="stretch" is for st.plotly_chart only)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -443,7 +443,7 @@ if has_materials and has_labor and has_overhead:
443
  "Total Cost": "€{:.2f}",
444
  "Recycled %": "{:.0f}%",
445
  }),
446
- width="stretch",
447
  hide_index=True,
448
  )
449
 
@@ -645,7 +645,7 @@ summary_df = pd.DataFrame({
645
  ],
646
  })
647
 
648
- st.dataframe(summary_df, width="stretch", hide_index=True)
649
 
650
  # Highlight the key insight
651
  profit_advantage = circular_cum_profit - linear_cum_profit
@@ -1231,7 +1231,7 @@ with st.expander("Full Scale Comparison Table"):
1231
  "Products Saved": "{:,}",
1232
  "CO2 Saved": "{:,.0f} kg",
1233
  }),
1234
- width="stretch",
1235
  hide_index=True,
1236
  )
1237
 
 
443
  "Total Cost": "€{:.2f}",
444
  "Recycled %": "{:.0f}%",
445
  }),
446
+ use_container_width=True,
447
  hide_index=True,
448
  )
449
 
 
645
  ],
646
  })
647
 
648
+ st.dataframe(summary_df, use_container_width=True, hide_index=True)
649
 
650
  # Highlight the key insight
651
  profit_advantage = circular_cum_profit - linear_cum_profit
 
1231
  "Products Saved": "{:,}",
1232
  "CO2 Saved": "{:,.0f} kg",
1233
  }),
1234
+ use_container_width=True,
1235
  hide_index=True,
1236
  )
1237