dataframe 转为list

首先使用np.array()函数把DataFrame转化为np.ndarray(),再利用tolist()函数把np.ndarray()转为list。

猜你喜欢

转载自www.cnblogs.com/bafenqingnian/p/9166693.html