[SciPy-User] Masking multiple fields in astructuredtimeseriesobject.
Tue Jan 12 15:01:47 CST 2010
_series['name'] is a 1D array w/ dtype '|S3'. What you'd want is to transform it into a 2D array of '|S1'. You could try to look chararray, but I'm not sure it'll help you. I'm afraid you gonna have to stick w/ the for loop. You may get it inlined, though:
['BB' in _ for _ in _series['name']]
thanks. Would the inline version be any faster or is it pretty much equivalent to an ordinary loop?
More information about the SciPy-User