Closed nalsabhan closed 6 years ago
hey you might try to Change the line
if isinstance(data.index, pd.tseries.index.DatetimeIndex):
to
if isinstance(data.index, pd.core.indexes.datetimes.DatetimeIndex):
this is probably caused by a too new Pandas Version you use where they changed some stuff with the index
ah well spotted, that seems to have fixed it now, i had moved to pandas 0.20 but was running tests against 0.19 so they didn't pick this up
First of all, thanks for this package. Moving back and forth from python to R is frustrating. I have an issue. My index is
RangeIndex(start=0, stop=152, step=1)
andpre_period = [0,109]; post_period = [111,151]
. I have 2 columns in pandas and when I pass it to CausalImpact I get the following error: