How to convert between pandas and numpy array of Datafram

Copyright Notice: Copyright: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_42658739/article/details/91357974
首先:导库再说
import pandas as pd
import numpy as np

Datafram converted into an array: array = Dataframe_Name.values
Here Insert Picture Description
the array into Datafram: df = pd.Dataframe (array)
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_42658739/article/details/91357974
Recommended