rj678 / pycausalmatch

Causal Impact of an intervention integrated with control group selection
MIT License
8 stars 3 forks source link

rmm.inference() frequency error #6

Open danboardman2 opened 2 years ago

danboardman2 commented 2 years ago

Running '3.8.8' in jupyter notebook, code from Starter notebook/starter_example.ipynb) produces the following error:

_ValueError: Pandas DataFrame or Series has a DatetimeIndex with no set frequency, but STS requires regularly spaced observations. Consider using tfp.sts.regularize_series to infer a frequency and build a regularly spaced series (by marking unobserved steps as missing observations)._

Same error occurs when running rmm.inference() on other datasets.

danboardman2 commented 2 years ago

numpy==1.21.4 pandas==1.3.5 dtw-python==1.1.6 tfcausalimpact==0.0.5

rj678 commented 2 years ago

thank you for posting this - unfortunately, I'm unable to develop or maintain this repo anymore - I'll add a note on the README, sorry about this and good luck!

rj678 commented 1 year ago

hi @danboardman2 - sorry for the delayed response on this - this issue relates to an older version of tfcausalimpact - I've updated the version in the setup file, and will push it to master soon - could you update the version of tfcausalimpact and check again please - you can find more details here:

https://github.com/WillianFuks/tfcausalimpact/issues/26