Python Pandas ValueError Arrays Must be All Same Length

前端 未结 5 1265
终归单人心
终归单人心 2020-12-14 02:15

Iterates over a big list of .mp3 links to get the metadata tags and save it to an Excel file. Results in this error. I appreciate any help. Thanks.

    #pri         


        
5条回答
  •  感动是毒
    2020-12-14 02:57

    you can do this to avoid that error

    a = {'Links' : lines ,'Titles' : titles , 'Singers': finalsingers , 'Albums':finalalbums , 'Years' : years}
    df = pd.DataFrame.from_dict(a, orient='index')
    df = df.transpose()
    

提交回复
热议问题