Dataframe and np.array The mutual transformation of

the Internet looking for half a day not dataframe into transformation dataframe array is an array, so here to summary the mutual conversion of python generation is as follows:

  • dataframe into array
    df=df.values
    • array into the dataframe
      import pandas as pd
      
      df = pd.DataFrame(df)

      and that’s OK!

Read More: