Pandas get single cell value

    0

    2

    ottersity

    pandasdataframecell

    Filters dataframe for column with specific value and obtains the single value of specified column.

    Shortcut: pandas_cell

    cell_value = df[df["colname_which_should_be_filtered"] == "value_for_filtering"["colname_whose_cell_should_be_obtained".values[0]
    
    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.