Closed AlxndrMlk closed 1 year ago
Thanks for the bug report. My hunch is that treatment_index
needs to be a date time, not a string. Can you see if it works when replacing with pd.to_datetime('2022-10-28')
.
Do let me know if that fixes it and I'll add in automatic conversion.
@drbenvincent thank you, converting to date time worked!
I realized that it's actually how you'd do it in pandas
as well.
Hi,
first thanks for your great work with CausalPy!
I experienced the following issue:
When using a data frame with
datetime
-typed index the.plot()
method ofcp.pymc_experiments.SyntheticControl
class returnsIndexError
.Code:
This results in the following error: