Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

01_Getting_&_Knowing_Your_Data - Chipotle - Total Revenue Incorrect #119

Open
j2duffy opened this issue Aug 18, 2021 · 2 comments
Open

01_Getting_&_Knowing_Your_Data - Chipotle - Total Revenue Incorrect #119

j2duffy opened this issue Aug 18, 2021 · 2 comments

Comments

@j2duffy
Copy link

j2duffy commented Aug 18, 2021

In the chipotle dataset I believe the total revenue is incorrect.
It assumes that the quantity must be multiplied by the price to get the the total.
(chipo['quantity']* chipo['item_price']).sum()

However, I believe that the quantity is already included in the price, as can be seen by examining
chipo[chipo['item_name'] == '6 Pack Soft Drink']

It think the following is sufficient.
chipo['item_price']).sum()

@rmbennet
Copy link

rmbennet commented May 5, 2023

That's correct. I did it the same way you did.

@dienluong
Copy link

dienluong commented Nov 3, 2024

You are right.
"Canned soda" for example:

Row 9:	2	Canned Soda	[Sprite]	$2.18 
Row 24:	1	Canned Soda	[Sprite]	$1.09 

So, solution to "Step 16" is actually much easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants