The following seems to produce what you want using the data provided
```
In [31]: dF = np.genfromtxt('/home/F.csv', delimiter=',').tolist()
In [32]: dS = np.genfromtxt('/home/S.csv', delimiter=',').tolist()
In [33]: r = [True if i in lS else False for i in dF]
In [34]: sum(r)
Out[34]: 300
```
On Sun, Mar 14, 2021 at 8:35 PM Robert Kern wrote:
>
> On Sun, Mar 14, 2021 at 3:06 PM Ali Sheikholeslam
> wrote:
>>
>> I have written a question in:
>> https://stackoverflow.com/questions/66623145/how-to-get-boolean-matrix-for-similar-lists-in-two-different-size-numpy-arrays-o
>> It was recomme
On Sun, Mar 14, 2021 at 3:06 PM Ali Sheikholeslam <
sheikholeslam@gmail.com> wrote:
> I have written a question in:
>
> https://stackoverflow.com/questions/66623145/how-to-get-boolean-matrix-for-similar-lists-in-two-different-size-numpy-arrays-o
> It was recommended by numpy to send this subje
I have written a question in:
https://stackoverflow.com/questions/66623145/how-to-get-boolean-matrix-for-similar-lists-in-two-different-size-numpy-arrays-o
It was recommended by numpy to send this subject to the mailing lists.
The question is as follows. I would be appreciated if you could advise