WillianFuks / tfcausalimpact

Python Causal Impact Implementation Based on Google's R Package. Built using TensorFlow Probability.
Apache License 2.0
610 stars 72 forks source link

how to specify which column is y #82

Closed pamant22 closed 10 months ago

pamant22 commented 10 months ago

As in the title, it's not clear to me unless I'm missing something how you specify which column in the dataframe is to be predicted. Is it the first column, as in the R package? Or is there some other way of doing this?

WillianFuks commented 10 months ago

Precisely. The first column is your observed response y. This package follows closely the R implementation, both share the same API.

pamant22 commented 10 months ago

perfect, thanks