Spaces:
Running
Running
Commit ·
2e7dc8e
1
Parent(s): 85fcbc2
Fix st.dataframe width parameter (use_container_width)
Browse filesst.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>
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 |
-
|
| 447 |
hide_index=True,
|
| 448 |
)
|
| 449 |
|
|
@@ -645,7 +645,7 @@ summary_df = pd.DataFrame({
|
|
| 645 |
],
|
| 646 |
})
|
| 647 |
|
| 648 |
-
st.dataframe(summary_df,
|
| 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 |
-
|
| 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 |
|