Get value from dataframe



    Javier Pacheco

    This code extracts the value for the first two rows of the data frame.

    import pandas as pd
    value = df.iloc[0,2] #iloc[row, column]
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.