Skip to content

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

Open
@anguoyuan

Description

@anguoyuan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions