Which function can we use to solve if 1 week of data is missing in a time series data?
backfilling or front filling or average ?
I’d say it’s a matter of preference what to use in such situations.
If you’re worried the period is too big and filling it with the same value as the period before it will cause confusing results, you can do something different.
You can go through the entire dataset manually (using an loop) and then add the previous period value with some added residual to offset it all being the same. You can maybe even replicate the way we generate white noise and use that as the offset for each interval.