I have a large dataset for previous 2 years of data as below which has daily data but some days are missing. I need a row for every date even if it is missing (weekends etc). so below i would end up with 2/2/2021 with the price the same as the 1st. How can i add in the missing dates and make the price the same as the previous day?
| Date | Code | Price |
| 1/2/2021 | a | 2 |
| 1/2/2021 | b | 3 |
| 1/2/2021 | c | 5 |
| 3/2/2021 | a | 4 |
| 3/2/2021 | b | 4 |
| 3/2/2021 | c | 4 |