a = shape (2, 3)
Try
Spaces or commas between values · new line = new row · blank line = new 2-D layer (3-D array).
real pandas 3.0.2 · runs here
Starting Python… (first visit downloads ≈ 15 MB, then it is cached)
Words become text labels ('r0'), whole numbers become number labels (10).
a ndarray (2, 3)1
2
3
4
5
6
import numpy as np
import pandas as pd
a = np.array([[1, 2, 3],
[4, 5, 6]])
df = pd.DataFrame(a, index=['r0', 'r1'], columns=['A', 'B', 'C'])
values = df.to_numpy() # the array inside, without labels
dfOutput
Output appears here.