How can I add repeated elements of an array in python 3

0

What happens is that I need to see something like that of a Numpy arrangement of songs with their reproductions.

[[‘broken bones’ ‘30’]
 [‘broken bones’ ‘40’]
 ‘End game’ ‘30’]]

I want to know how to do something like this:

[[‘broken bones’ ‘70’]
 [‘End game’ ‘30’]]

That is to say, that the reproductions of the repeated songs are added, and those that are not repeated, leave them as they are.

Please, if someone helps me, it would be great, thanks

    
asked by anthony sanchez 24.11.2018 в 20:06
source

0 answers