Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pandas as_matrix() --> to_numpy() #47

Open
anguoyuan opened this issue Dec 19, 2022 · 0 comments
Open

pandas as_matrix() --> to_numpy() #47

anguoyuan opened this issue Dec 19, 2022 · 0 comments

Comments

@anguoyuan
Copy link

Hi, thanks for your good work.
In python/utils/tasks.py, you used dataframe.as_matrix(). However, I found pandas has deprecated as_matrix() function after version 0.23.0; it results in an error now. We can use to_numpy() instead.

https://pandas.pydata.org/pandas-docs/version/0.25.1/reference/api/pandas.DataFrame.as_matrix.html
https://pandas.pydata.org/pandas-docs/version/0.25.1/reference/api/pandas.DataFrame.to_numpy.html#pandas.DataFrame.to_numpy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant