facebook / facebook/prophet

How to combine datasets with different time granularity?

Open
#2,109 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

Hi!

I was wondering how could I use Prophet to use two datasets that have yearly and monthly datapoints? I.e. let's assume dataset A has yearly datapoints and dataset B has monthly datapoints. Dataset B contains useful **monthly** features that should be used for predicting variable Y in dataset A. Dataset A also contains useful **yearly** features that help with predicting variable Y in dataset A. If I right join two datasets together by some common key, I will have a lot of **NaNs** because dataset A has only yearly data.

How should I approach this task with Prophet? Should I use some imputation method for that, or does Prophet have some functionality to overcome it? I was also thinking to summarize monthly data into "yearly" representation but that would lead to information loss.

Thanks in advance for help!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.