Consider the following code:
import numpy as np
import pandas as pd
a = np.array([[1,2],[3,4],[5,6],[7,8]])
k = pd.DataFrame({"a": list(a)})
![df](https://i.stack.imgur.com/5L5x0.png)
I'd like to retrieve the original numpy array. However, when I call .values
I get something different.
![values](https://i.stack.imgur.com/mOfhN.png)
How can I get the original numpy array, that looks like this:
array([[1, 2],
[3, 4],
[5, 6],
[7, 8]])
?
Thank you.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…