如何访问熊猫行?

你能解释一下两者之间的区别吗?

#1
for index, row in df.iterrows():
#2
for x in df['city']:

Should I always use or for index, row in df.iterrows(): while trying to access data in pandas:

for index, row in df.iterrows():
for x in df['city']:

或者在某些情况下,如第二个示例中那样指定列名,我够了吗?

谢谢