成功解决 ValueError: Shape of passed values is (2, 3), indices imply (4, 3)
昨天整理了知识点,今天复盘时,发现了error,巩固dataframe的用法。错误原因file3=pd.DataFrame(data={'Gender':['M','F'],'Height':[155,160,175,180],'Weight':[50,48,52,65]},index=['row%d'%iforiinrange(4)])file3我是想定一个(4,3)形状的二维,但却报错Valu