While iteratinga dataframe, how can I place a newly found value into a new column at the same index?

后端 未结 0 1936
忘掉有多难
忘掉有多难 2020-12-18 09:08
for artist in test_data[:10][\'artist\']:    
    spotify_query = sp.search(artist, limit=1, type=\'artist\')
    artist_id = spotify_query[\'artists\'][\'items\'][0         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题