Numpy Array Loop Through Columns In R