ExeTera icon indicating copy to clipboard operation
ExeTera copied to clipboard

field.where functionality

Open atbenmurray opened this issue 3 years ago • 0 comments

exetera needs a where function that carries out the numpy where functionality. This should probably be implemented in the form of exetera.where(a_field = 'foo', 'bar', a_field). We could also potentially expose this functionality in other ways, such as a_field.where() although that doesn't mirror the numpy api

a = exetera.where(b == 2, 1, 0) # memory field df['a'] = exetera.where(b == 2, 1, 0) # hdf5 field

atbenmurray avatar Nov 15 '21 15:11 atbenmurray