Pandas 遍历Dataframe Posted on 2018-12-18 | Edited on 2018-12-31 | In Python Package Usage 可以采用df.iterrows()函数 设有如下df 12 target text0 1 "blahblah" 则遍历方式如下 123for index, row in df.iterrows(): print(index) # 0 print(row["target"]) # 1