The Python Oracle

Map a NumPy array of strings to integers

This video explains
Map a NumPy array of strings to integers

--

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: Hypnotic Puzzle3

--

Chapters
00:00 Question
01:22 Accepted answer (Score 22)
02:01 Answer 2 (Score 3)
02:18 Thank you

--

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

Accepted answer links:
[np.unique]: http://docs.scipy.org/doc/numpy-1.10.1/r...

Answer 2 links:
[np.searchsorted]: http://docs.scipy.org/doc/numpy-1.10.0/r...

--

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

--

Tags
#python #arrays #string #performance #numpy

#avk47