Skip to content

Commit 105f332

Browse files
committed
Update
1 parent 8d23e2c commit 105f332

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Spreadsheet_Automation/script.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
item = input("What is the basis of merging? ")
1717
data_total = data_home_1.merge(data_prices, on=item)
1818

19-
data_total['Total Price'] = data_total['PURCHASED AMOUNT'] * data_total['Price']
2019

2120
#print​(df_total)
22-
material=input("Enter criteria 1")
23-
price=input("Enter criteria 2")
24-
fig = px.pie(data_total[[material, price]], values=price, names=material)
21+
criteria_1=input("Enter criteria 1")
22+
criteria_2=input("Enter criteria 2")
23+
fig = px.pie(data_total[[criteria_1, criteria_2]], values=criteria_2, names=criteria_1)
2524
fig.show()
2625

0 commit comments

Comments
 (0)