Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- query = f"select * from {table}"
- df = pd.read_sql(query, conn)
- edit_df = st.experimental_data_editor(df,num_rows='dynamic')
- if st.button('Insert'):
- if edit_df.tail(len(edit_df)-len(df)).values == "empty":
- st.write('True')
- for x in edit_df.tail(len(edit_df)-len(df)):
- st.write(x)
- st.write(edit_df.tail(len(edit_df)-len(df)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement