Ho un dataframe panda che converto a NumPy matrice come segue:Converti dataframe elencare
df.values
che dà il seguente risultato:
array([[2],
[0],
[1],
...,
[0],
[1],
[0]], dtype=int64)
Tuttavia voglio ottenere l'elenco come segue :
[0, 2, 3]
Qualche idea su come procedere?
voi significa 'df.values.tolist()'? – EdChum