
Dataframe-2D
nrows = [0, 1, 2]
cols = [“a”, “b”]
ncols = [0, 5, 2]
# search with values
df.loc[[nrows], [cols]]
df.iloc[[nrows], [ncols]]
# get an exact value
df.at[row, col]
to_numpy()
numpy_array = df.iloc[:, 1:].to_numpy()
Series-1D
# get an exact value
series.at[row, col]