In Python, for an array how can I find the columns that at least contain one negative element? Additionally, how can I find the median of rows that include at least one negative value? Let's say that this is our array:
import numpy as np
a = np.array([[1,2,0,-4],[-3,4,-4,1],[3,6,2,9]])
Thanks in advance.