📌  相关文章
📜  如何从python代码示例中的数据框中获取一行

📅  最后修改于: 2022-03-11 14:46:23.386000             🧑  作者: Mango

代码示例4
1.     Selecting data by row numbers (.iloc)
    # myrow = data.iloc[]
     myrow = data.iloc[7]
    myrow = data.iloc[0:9]
    
2.     Selecting data by label or by a conditional statement (.loc)
    # myrow = data.loc[