Adding Holidays to Comparison
As we can see, there are different shops in the dataset, and their revenues vary significantly - we have shops with total revenue of about 50 million, and at the same time shops with total revenue of more than 250 million. Let's see whether earnings differ depending on whether it is a holiday week or not.
Swipe to start coding
You are going to work with nearly the same code as in the previous task. You just need to modify certain things:
- Group the values of the
df
DataFrame by'Store'
, and then'Holiday_Flag'
column (the order is important). Then, after selecting the'Weekly_Sales'
column, compute the mean values. - Within the
.barplot()
function, set the parameter, so that there will be separate bars for each of the unique values of the'Holiday_Flag'
column.
Oplossing
Bedankt voor je feedback!
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 3.45
Adding Holidays to Comparison
Veeg om het menu te tonen
As we can see, there are different shops in the dataset, and their revenues vary significantly - we have shops with total revenue of about 50 million, and at the same time shops with total revenue of more than 250 million. Let's see whether earnings differ depending on whether it is a holiday week or not.
Swipe to start coding
You are going to work with nearly the same code as in the previous task. You just need to modify certain things:
- Group the values of the
df
DataFrame by'Store'
, and then'Holiday_Flag'
column (the order is important). Then, after selecting the'Weekly_Sales'
column, compute the mean values. - Within the
.barplot()
function, set the parameter, so that there will be separate bars for each of the unique values of the'Holiday_Flag'
column.
Oplossing
Bedankt voor je feedback!
Awesome!
Completion rate improved to 3.45single