I have an array of booleans that says which columns of another array I should drop.
For example:
selections = [True, False, True]
data = [[ 1, 2, 3 ],
[ 4, 5, 6 ]]
I would like to have the following one:
new_data = [[ 1, 3 ],
[ 4, 6 ]
All arrays are numpy.array in Python 2.7.