急!jupyter做logistic回归时出现PatsyError😥😥

Logistic回归
完整报错:PatsyError: numbers besides '0' and '1' are only allowed with **
搞了好久不知道怎么办😥😥😥

img

img

可参考这里给出的解决办法。
https://stackoverflow.com/questions/65577244/patsyerror-numbers-besides-0-and-1-are-only-allowed-with-doesnt-not-res