Answers for "inverse mask python"

0

inverse mask python

>>> a = numpy.array([False,True,False])
>>> ~a
array([ True, False,  True], dtype=bool)
>>> numpy.logical_not(a)
array([ True, False,  True], dtype=bool)
Posted by: Guest on March-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language