Numpy mask based on if a value is in some other list

后端 未结 2 1621
心在旅途
心在旅途 2021-01-17 10:42

I have searched high and low and just cant find a way to do it (Its possible i was searching for the wrong terms.)

I would like to create a mask (eg [True False Fal

2条回答
  •  再見小時候
    2021-01-17 11:13

    Accepted answer is right but currently numpy's docs recommend using isin function instead of in1d

提交回复
热议问题