How to add a new row by clicking a button?

I want to add a new row in my df2 (dataframe) when i click the button ‘EJECUTAR’ (execute)


Hi @Isaac_Medina ,
If I understood you correctly , you plan to add an additional row, right ?
what about using Streamlit function itself - Mutate Data (Refer to the doc)

df2.add_rows(df2)

alternatively, you can also use pandas - concatante syntax to add another dataframe with default values.

cheers
Avra

1 Like