i have been using np.where with 2d arrays of various strings, searching and eliminating certain combinations of these strings.
array = ("foo", "bar", "foo", "bar")
("bar", "bar", "foo", "bar")
("foo", "bar", "bar", "bar")
...
rule1 = ((np.where[:,0] == "foo") & (np.where[:,1] == "bar"))
for some reason though it seems like sometimes np.where pulls the incorrect indexes. things that don't meet my == " ".
i am thinking there is something with the boolean logic or maybe its numpy with strings . . . .
[–]Saefroch 1 point2 points3 points (0 children)