dataframe 添加列表到一个单元格并解决报错ValueError: Must have equal len keys and value when setting with an...
报错解析importpandasaspdimportnumpyasnpdf=pd.DataFrame(np.random.randint(0,10,size=(5,2)),columns=['test1','test2'])生成的dataframe格式是:直接使用:df.loc[0,'test_list']=np.array([1,2,3])会报错:ValueError:Musthaveequal