SyntheticControlMethods
SyntheticControlMethods copied to clipboard
Issue Running Example Code - ValueError: `f0` passed has more than 1 dimension.
First of all, THANK YOU for putting together this awesome package with clear documentation!
I am trying to follow along with your example code, and have tried with the german_reunification and proposition 99 data, as well as in the Jupyter binder you posted, and keep getting the same error:

Same problem here with my own data. f0 is a single element in a nested list (e.g. [[0.1234]]).
@megangrannan This is a problem with scipy==1.7.1. The problem goes away if you use scipy==1.4.1, which is not compatible with Python3.9 though.
I also had this issue. I was running an earlier version of this package on my laptop, but when I moved to my PC to work with this package and installed the latest version, I was getting this f0 error.
Is there a practical solution to the problem?
@kheilman, downgrade to scipy==1.4.1.
Same problem, here. Tried lower scipy version but it still doesn't work.
@kheilman, downgrade to
scipy==1.4.1.
2022-02-07, updated:
Sorry about the above wrong message, it works after downgrade to scipy==1.4.1
hi, is there a solution to this type of error? with my version of python I cannot downgrade scipy to 1.4.1..
I get the following error but my data has same schema is the same than examples:
ValueError: cannot reshape array of size 33909 into shape (65,829)

same issue with me.. with scipy.optimize.minimize using 'trust-constr' method with bounds and non-linear constraints
can someone please help
Expect lower scipy version, is there any other solutions? (My python version is 3.9 which is incompatible with scipy1.4.1)