py-why / dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
https://www.pywhy.org/dowhy
MIT License
6.88k stars 916 forks source link

model.estimate_effect and model.refute_astimate throws 'A column-vector y was passed ...' error #1212

Open diro5t opened 2 weeks ago

diro5t commented 2 weeks ago

Hi team,

when I use above mentioned methods I get the the following message:

"A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel()."

How can I avoid this? Is this a bug or am I doing something wrong?

Thanks