使用df.as_matrix()报错:DataFrame object has no attribute “as_matrix”
import numpy as np
import pandas as pd
#构建数据集
df = pd.DataFrame({"date":["2021-1-31","2021-2-28"], "uid":["a1","a2"], "amount":[50,30] } )
# as_matrix_array = df.as_matrix()
values_array = df.values