How about
if value in my_array[:, col_num]:
do_whatever
Edit: I think __contains__ is implemented in such a way that this is the same as @detly’s version
How about
if value in my_array[:, col_num]:
do_whatever
Edit: I think __contains__ is implemented in such a way that this is the same as @detly’s version