charlie86 / spotifyr

R wrapper for Spotify's Web API
http://www.rcharlie.com/spotifyr
Other
367 stars 63 forks source link

get_artist_audio_features issue: "Duplicated" tracks #125

Open letilagle opened 3 years ago

letilagle commented 3 years ago

Hi Charlie! @charlie86

I have a question related to the function get_artist_audio_features. I am doing a school project, and when getting these artist audio features, like for example 'eminem', after I transform the data into a dataframe and visualize all the tracks, I noticed that all tracks were "duplicated". I use the "" on purpose, since when I compare two tracks, with the exact same name, and from the same album, they have different track IDs, and even different values on the audio characteristics (small differences on tempo ,or danceability ,for example)

To check if I had duplicated rows/songs, I used the duplicated function, R returns me all FALSE which is correct, since the track IDs do not match (or the tempo for instance, like I was telling you before)

Is there like a justified reason for these semi-"duplicates" (even triplicates!)? Or a solution to just select one of these duplicates for every track?

To check I also have tried with different artists, like Vance Joy or Gym Class Heroes, even Taylor Swift (like @simranvatsa uses on her example) but it seems that it happens with all artists!

Thank you in advance, Leti

antaldaniel commented 3 years ago

@letilagle Can you please give a concrete example to look into it, i.e. a function call with a particular artist ID?