Can I broadcast with numpy character find (stackoverflow.com)stack
26 points by I.P. Freeley in stackoverflow.com · 6h ago · stack comments
I have an array of potential substrings and an array of full strings. I'd like to know which elements of the potential substrings are indeed found as substrings in the full array. import numpy as np potential_substrings = np.array(["visit a", "visit b", "visit c, 1", "visit d"])…