Klel, in this case you can use the function:
' pandas.DataFrame.values '
Here is the usage example:
import pandas as pd
df = pd.DataFrame({'idade': [ 3, 29],
'peso': [94, 170]})
vetor = df.values
To pass the entire DF to an array.
Or directly assign a single column to an array.
import pandas as pd
df = pd.DataFrame({'idade': [ 3, 29],
'peso': [94, 170]})
vetor = df['idade'].values
On the last line just put the desired column.
Follow the Link for the documentation.
Example with 1 column
import pandas as pd
df = pd.DataFrame({'idade':[ 3,29,13,15,16,14,12]})
vetor = df.values