From pandas documentation, I found the function to_numpy https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_numpy.html But when I tried it(the same example as in the documentation), I have: 'DataFrame' object has no attribute 'to_numpy'.
Do you know from where could be the problem?
to_numpy()was introduced in Pandas 0.24. On earlier versions, you need to calldf.values.