首先:导库再说
import pandas as pd import numpy as np
把Datafram转换成数组: array = Dataframe_Name.values 把数组转换为Datafram: df = pd.Dataframe(array)