pandas遍历行数据

假设我的DataFrame如图所示:

我可以这样遍历它:

    for index,row in list.iterrows():
        id =row["id"]
        x=row["x"]
        y=row["y"]
        judge=row["judge"]

 

posted @ 2019-03-19 19:01  超级学渣渣  阅读(16872)  评论(0编辑  收藏  举报