pysal / spreg

Spatial econometric regression in Python
https://pysal.org/spreg/
Other
66 stars 23 forks source link

`scipy.sparse.csr` DeprecationWarning in `user_output.py` #125

Closed jGaboardi closed 3 weeks ago

jGaboardi commented 11 months ago

We are hitting a DeprecationWarning thrown by scipy.sparse in user_output.py:

spreg/user_output.py:15: DeprecationWarning: Please use `csr_matrix` from the `scipy.sparse` namespace, the `scipy.sparse.csr` namespace is deprecated.
    from scipy.sparse.csr import csr_matrix

Simply need to adjust the import structure.

pedrovma commented 3 weeks ago

Part of issue #126.