相互转换的python代如下: dataframe转化成array: df=df.values array转化成dataframe: import pandas as pd df = pd.DataFrame(df)