Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LOCF and gap-fill logic #12

Merged
merged 4 commits into from
May 15, 2024
Merged

Add LOCF and gap-fill logic #12

merged 4 commits into from
May 15, 2024

Conversation

jasonmp85
Copy link
Contributor

@jasonmp85 jasonmp85 commented May 13, 2024

This adds a function to date-bin time-series data, including the production of missing rows (emitted as NULL values). By combining this with the provided LOCF window function, it is possible to produce dense bucketed time series entirely within PostgreSQL and with minimal SQL knowledge.

sql/timeseries.sql Outdated Show resolved Hide resolved
@jasonmp85
Copy link
Contributor Author

Pushing up some changes to this after the demo; it's much improved and good to go after that

@jasonmp85 jasonmp85 merged commit f0e5bc6 into main May 15, 2024
4 checks passed
@jasonmp85 jasonmp85 deleted the imputation branch May 15, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants