I have a pandas dataframe that I convert to numpy array as follows:
df.values
which gives the following output:
array([[2],
[0],
[1],
...,
[0],
[1],
[0]], dtype=int64)
However I want to obtain the list as follows:
[0, 2, 3]
Any idea how to do this?