The Python Oracle

Convert a numpy boolean array to int one with distinct values

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Darkness Approaches Looping

--

Chapters
00:00 Question
01:19 Accepted answer (Score 10)
01:34 Answer 2 (Score 1)
02:30 Thank you

--

Full question
https://stackoverflow.com/questions/2067...

Question links:
[How to convert a boolean array to an int array]: https://stackoverflow.com/questions/1750...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #numpy

#avk47