Last answered:

26 Aug 2022

Posted on:

26 Jul 2022

0

Cannot create all 5 "Revenue Brands"

When trying to create the revenue for all 5 brands in a series of steps, like what is shown in the video, it seems to overwrite the previous one. That means, after I ran it from Brand 1 to  Brand 5, I only have the revenue data for Brand 5 left in my dataset without the other four brands. I got the warning about the "loc" function (I saw some other students got that warning too), which doesn't affect running the code, but will this cause the above problem that I asked about? Thanks!

1 answers ( 0 marked as helpful)
Instructor
Posted on:

26 Aug 2022

0

Hi Christine,
the overwriting of brand 5 might be happening due to the fact that we use the same temp variable during the creation process of the table, so that might be why you're getting the problem.
If you're still experiencing any issues with this part of the course, could you please upload a screenshot of your code along with the error/warning message you're receiving and the output of the brand table. Thanks in advance!

Best,
365 Eli

Submit an answer