for artist in test_data[:10][\'artist\']: spotify_query = sp.search(artist, limit=1, type=\'artist\') artist_id = spotify_query[\'artists\'][\'items\'][0