Editable dataframe when its getting Launched

Hello, I have an use case to edit the dataframe using streamlit . In Roadmap section in Streamlit I have seen Its in still development . Could you please help when its getting Launched. & what are the other option where i can edit the data in streamlit.

Hi @a658664,

Right now, you can use st-aggrid to accomplish this. Our refresh of dataframes is slated to be released in the next few months. Stay tuned!

Okay Thanks sure.

Current estimate is mid-January!

4 Likes

Okay cool that’s great.Thanks

Hello, any update which date its getting released this feature.

2 Likes

Also curious to know when the editable dataframes are released :slight_smile:

Curious as well. Would be a quite practical to edit the dataframes

Starting 1.18 there is experimental_data_editor(… num_rows=‘dynamic’) where you can edit the dataframe.

Sample code.

"""
streamlit 1.18.1
"""

import streamlit as st
import pandas as pd


DATA = {
    'Country': ['Japan', 'Norway', 'Philippines'],
    'Capital': ['Tokyo', 'Oslo', 'Manila']
}


@st.cache_data()
def get_data():
    return pd.DataFrame(DATA)


df = get_data()

st.write('### Init')
st.dataframe(df, height=150)

st.write('### Data editor')
update = st.experimental_data_editor(df, height=200, num_rows='dynamic')

st.write('### Update')
st.dataframe(update, height=150)

1 Like