AssertionError: 1 columns passed, passed data had 5 columns错误解决
问题描述list=[[1,2,3],[3,4],[1,2,3,4,5]]想转成dataframe格式如下tag0[1,2,3]1[3,4]2[1,2,3,4,5]错误:使用pd.DataFrame(data=list,columns=[‘a’])报错AssertionError:1columnspassed,passeddatahad5columns原因:使用pandas.DataFrame构造函