Pandas ValueError: Must have equal len keys and value when setting with an iterable
pandas:ValueError:Musthaveequallenkeysandvaluewhensettingwithaniterable问题:#print(df.loc['1','a']),返回的是10(int类型)#如果想要将其值修改为[1,2,2]列表时df.loc['1','a']=[1,2,2]执行代码就会报上述错误。解决办法:df._set_value('1','a',[1,2,2