My dataframe, df:
Col_A Col_B
Apple [1,2,3]
Banana [1,null,4]
Orange [6,null,null]
The nulls are represented as np.nans in the dataframe. How can I check if all the values in each row of Col_B are null?
This is my np.where:
np.where(pd.isnull(df[Col_B]).all(), "Fail", "Pass")
However, I get a truth value is ambiguous even though I have a ".all()" there. Any way to get around this issue?