Hey guys,
First post here.
I was trying to process some StatsCan data.
I have built the logic that can download the data from the StatsCan website and write those data into our DB.
Currently, I need to solve one last issue before I can write those data into our DB.
This data is daily data which contained the values from Monday to Sunday. The values will be 0 during the weekend and holidays.
I am trying to create a new column called adjusted value and use the values from the nearest working day's values if the date is the weekend or holidays.
For example, 2021/01/30 was Saturday, I want to use the values from Frday 2021/01/29 in the new column.
Thank you so much for your help!