Re: [Numpy-discussion] How to create a boolean sub-array from a larger string array?
23 Jun
2007
23 Jun
'07
7:21 p.m.
You can always use something like
mdat[[2,4]] == '*'
to get the boolean array you want. This scheme can work with any string representation of True and False.
Dang! I keep forgetting that a conditional test can return an array like that - thanks for the reminder, this will clean up my ugly code from before :) Back to the drawing board, -Basilisk96
6376
Age (days ago)
6376
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andriy Basilisk