Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

Trainer Deepak Kumar || Data Science with Python || Jan 16,17,23,24,30,31 Feb 6,7,13,14,20

_87296

New Member
Use Holiday Flag function in the column to get the mean of the Non holiday week sale Later convert the each holiday event to pd.to_datetime and then get the mean of each event later it can be compared with the mean of non holiday week to know which event had higher sale.

Non holiday weekly sales': walmart_data[walmart_data['Holiday_Flag']== 0]['Weekly_Sales'].mean()
 

_85998

Member
Hi All, Do we need to consider only Store1 data for training and test of the ML model ? Because the question itself is about predicting the demand for store1 only so if we train the ML model with complete sores data it may not predict for store1 correctly. On the otherhand we only have few data in hand if we only choose store1. Bit confused about what to do here. Anyone can give a direction here? Thanks..
 

_87176

New Member
Hi All, Do we need to consider only Store1 data for training and test of the ML model ? Because the question itself is about predicting the demand for store1 only so if we train the ML model with complete sores data it may not predict for store1 correctly. On the otherhand we only have few data in hand if we only choose store1. Bit confused about what to do here. Anyone can give a direction here? Thanks..
Yes it is only for store 1 as discussed in last class
 
Top