[Numpy-discussion] removing and replacing certain values in arrays
Mon Jul 7 15:38:33 CDT 2008
On Mon, Jul 7, 2008 at 15:08, Tim Michelsen <firstname.lastname@example.org> wrote:
> how do I remove all rows (or column) from an array which contain a
> certain value or sting?
Modification in-place is not possible. You will have to make a boolean
mask, then use boolean indexing to pull out a new array with the
desired values removed.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion