pandas_exercises icon indicating copy to clipboard operation
pandas_exercises copied to clipboard

01_Getting_&_Knowing_Your_Data - Chipotle - Total Revenue Incorrect

Open j2duffy opened this issue 4 years ago • 2 comments

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()

j2duffy avatar Aug 18 '21 12:08 j2duffy

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

rmbennet avatar May 05 '23 19:05 rmbennet