Consider that I have this example dataframe:
d = {'Gender': [1,1,0,1,0], 'Employed': [1,0,0,1,1]}
I would like this to be an array of this form:
[[1 1 0 1 0][1 0 0 1 1]]
When I run
d[['Gender', 'Employed']].to_numpy()
I get an array of the form [[1 1][1 0][0 0][1 1][0 1]].