Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,10 +85,10 @@ if quantity_file and cost_file:
|
|
85 |
if st.button("Generate Estimate"):
|
86 |
computed_df = compute_total_quantities(base_df, covered_area, floors)
|
87 |
boq = computed_df.merge(cost_df, on="Material", how="left")
|
88 |
-
boq["Amount"] = boq["Total Qty"] * boq["
|
89 |
|
90 |
st.subheader("π Bill of Quantities (BOQ)")
|
91 |
-
st.dataframe(boq[["Material", "Total Qty", "Unit", "
|
92 |
|
93 |
total_cost = boq["Amount"].sum()
|
94 |
st.metric("Total Estimated Cost (Rs)", f"{total_cost:,.0f}")
|
|
|
85 |
if st.button("Generate Estimate"):
|
86 |
computed_df = compute_total_quantities(base_df, covered_area, floors)
|
87 |
boq = computed_df.merge(cost_df, on="Material", how="left")
|
88 |
+
boq["Amount"] = boq["Total Qty"] * boq["Rate_per_Unit"]
|
89 |
|
90 |
st.subheader("π Bill of Quantities (BOQ)")
|
91 |
+
st.dataframe(boq[["Material", "Total Qty", "Unit", "Rate_per_Unit", "Amount"]])
|
92 |
|
93 |
total_cost = boq["Amount"].sum()
|
94 |
st.metric("Total Estimated Cost (Rs)", f"{total_cost:,.0f}")
|