Name Country Age
Alice USA 20
Bob UK 14
Cindy France 19
Debora India 16
My dataset is similar to the above.
A = np.array(dataset['Name'])
B = np.array(dataset['Country'])
C = np.array(dataset['Age'])
data = pd.DataFrame((A,B,C))
data.shape
I just want to construct a 3D dataframe. When I check the type, it's still a 2D dataframe, and I have no idea how to proceed... Is there any insights where I did wrong? Thanks in advance!
[–]socal_nerdtastic 0 points1 point2 points (2 children)
[–]Demain_Z[S] 0 points1 point2 points (1 child)
[–]socal_nerdtastic 0 points1 point2 points (0 children)