Closed henryli78 closed 5 years ago
Yeah, I think your answer is correct. You're right, it looks like the Barbacoa Bowl doesn't seem to have any cases of quantities varying from 1. However, it looks like there is this kind of variation with Chicken Bowls.
Also, just FYI, the query
method is a nice, readable function that I like. You may have used it before. In case not, here's an example. These two things are equivalent:
chipo[chipo['item_name'] == 'Barbacoa Bowl']
# same as
chipo.query("item_name == 'Barbacoa Bowl'")
The question statement is:
I gave the answer
However, I wanted to make sure that this is a legitimate claim (specifically the multiple Barbacoa Bowls part). Using
chipo[chipo['item_name'] == 'Barbacoa Bowl']['quantity'].unique()
I get output
array([1])
Which implies that all quantities are 1. So is my answer still legit? It doesn't seem supported by our data set but I can't think of any other possible reason for this, other than heterogeneity of stores (there are 2 stores in our sample, but there is no data on the stores' individually pricing itself).
Thanks!