我这里老师的获取单元格的三种方法只有第一种可行?
print(brics['Nozzle'].loc['F-60']) print(brics.loc['Nozzle']['F-60']) print(brics.loc["Nozzle",'F-60']) 这是自己的csv数据。 第一行的可行,后面的两种都报错: KeyError: 'the label [Nozzle] is not in the [index]'
print(brics['Nozzle'].loc['F-60']) print(brics.loc['Nozzle']['F-60']) print(brics.loc["Nozzle",'F-60']) 这是自己的csv数据。 第一行的可行,后面的两种都报错: KeyError: 'the label [Nozzle] is not in the [index]'
2018-08-19
举报