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 · 1 comment
Open

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.

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

2 participants