1.datafame转换成array df.values 或者 np.array(df) 2.array转换成dataframe import pandas as pd pd.dataframe(array)