SudalaiRajkumar / ML

Codes related to various ML Hackathons
MIT License
213 stars 228 forks source link

for week, need to change subscript to week instead of year #4

Open ashhadulislam opened 5 years ago

ashhadulislam commented 5 years ago

I was running your code in my system Came across this minor issue.

Need to replace

train_df[date_col + "_week"] = train_df[date_col].dt.**year**
test_df[date_col + "_week"] = test_df[date_col].dt.**year**

with

train_df[date_col + "_week"] = train_df[date_col].dt.**week**
test_df[date_col + "_week"] = test_df[date_col].dt.**week**