nehme an, ich habe einen Datenrahmen ähnlich wie diese:Wie ein Array aus zwei Spalten in Pandas erstellen
d = {'col1': [0, 2, 4], 'col2': [1, 3, 5], 'col3': [2, 4, 8]}
df = pd.DataFrame(d)
col1 col2 col3
0 0 1 2
1 2 3 4
2 4 5 8
Wie kann ich wählen col1 und col2 und sie in diesem Array?
array([[0, 1],
[2, 3],
[4, 5]])