[Python] Return Pandas dataframe row

Discussão em 'Python' iniciado por Stack, Maio 20, 2025.

  1. Stack

    Stack Membro Participativo

    I have a Pandas dataframe with checkbox widget. I would like to process the values from the row when the checkbox is checked.

    Can anyone help me with this? My code is below.

    df = pagination.data_editor(data=pages[current_page - 1], use_container_width=True,
    disabled=['Date','Day','Project','Task','StartTime','EndTime','Note','Total_Hours'],
    column_order=['Date','Day','Project','Task','StartTime','EndTime','Total_Hours','Note','Delete','Edit'],
    column_config=config,
    key='edit_df')


    if not df.loc[df["Delete"]].empty:
    row = df.loc[df["Delete"] != df.loc[df["Delete"]].empty]
    entryid = row['id'].values




    What I get here is a DataFrame object and not the value of the id column. What do I need to do to get just the value of id column?

    Continue reading...

Compartilhe esta Página