Ranned 3 to 4 times and its not a error but this.
Your notebook tried to allocate more memory than is available. It has restarted.
I have also started a another notebook and tried something else and it works till
df = add_datepart(train, ‘S_2’) line.
I have also posted that question here.
https://forums.fast.ai/t/attributeerror-datetimeproperties-object-has-no-attribute-week/96781
Maybe you can find a solution for.THanks for the help by the way.