Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Numpy is absurd.
import numpy as np print(np.__version__) a = np.array([1,2,3]) b = np.array([1]) print(a in b) print(b in a) print(np.isin(a, b)) print(np.isin(b, a)) print(np.isin(a.astype(float), b)) print(np.isin(a, b.astype(float)))) 1.21.6 True True [ True False False] [ True] [ True False False] [ True False False]
There are no comments on this comment yet.