I have 2 arrays like:
['16.37.235.200','17.37.235.200','16.37.235.200', '18.37.235.200']
['17.37.235.200','17.37.235.200','16.37.235.200', '17.37.235.200']
And I want to map (injective) every IP address to an integer value.
Like for that instance above, eg.:
[0,1,0,3]
[1,1,0,1]
Is their an existing function (of NumPy or anything else) for that?