I have a list of numpy arrays, and want to remove elements based on a specific position.
[array([ 1, 2, nan, 4, nan]),
array([ 5, 6, 7, 8, 9]),
array([ 5, 6, 7, 8, 9])]
I need to get the positions of all the np.nan and remove the corresponding columns, giving me:
[array([ 1, 2, 4]),
array([ 5, 6, 8]),
array([ 5, 6, 8])]
Short of looping everything, I have no idea where to start!