If I have a numpy array with objects such as the following:
array(['Ana', 'Charlie', 'Andrew'], dtype=object)
And I want to map each object to all objects in the array so I obtain the following output:
array(['Ana', 'Ana'],['Ana','Charlie'],['Ana', 'Andrew'],
['Charlie','ana'], ['Charlie','Charlie'],['Charlie','Andrew'], ['Andrew','ana'],['Andrew', 'Charlie'], ['Andrew','Andrew'], dtype=object).
how can I use numpy to map each object to all objects in the same array?
Thanks so much.