Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot import dmatrices from patsy

Tags:

python

patsy

I'm trying to use dmatrices() function from patsy package in pycharm, but I get following error when impoting:

from patsy import dmatrices

Cannot find reference 'dmatrices' in 'init.py'

my python version is 3.8

like image 329
Mohammad Hosein Eshraghi Avatar asked Nov 18 '25 05:11

Mohammad Hosein Eshraghi


1 Answers

I know this is SUPER old at this point but from patsy.highlevel import dmatrices actually solved the issue for me. I just ran into this exact issue

like image 122
IanQ Avatar answered Nov 20 '25 19:11

IanQ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!