ustunb / risk-slim

simple customizable risk scores in python
BSD 3-Clause "New" or "Revised" License
132 stars 34 forks source link

Update Deprecated Pandas Function Call #9

Closed jnirschl closed 4 years ago

jnirschl commented 4 years ago

Pandas.DataFrame.as_matrix is deprecated since version 0.23.0 (see docs and PR 18458). According to the documentation for Pandas 0.25.1, the recommended function is DataFrame.to_numpy() in place of DataFrame.values or DataFrame.as_matrix().

https://github.com/pandas-dev/pandas/pull/18458 https://pandas.pydata.org/pandas-docs/version/0.23/generated/pandas.DataFrame.as_matrix.html https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.values.html