Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement partial update on editable dataframe #66

Open
FabienArcellier opened this issue Jul 14, 2024 · 0 comments
Open

implement partial update on editable dataframe #66

FabienArcellier opened this issue Jul 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@FabienArcellier
Copy link
Owner

FabienArcellier commented Jul 14, 2024

record_mutate modifies a record in the dataframe. This method allows you to create a form that easily update a record in a selected row from a dataframe.

partial modification of the record: By default, the record is completely overwritten. Missing values ​​are replaced with None values. By adding the partial=True flag, only the keys provided as arguments are modified.

state['df'] = EditableDataframe(df)
state['df'].record_mutate(record_index, {'flag': True}, partial=True) # update the column flag of the dataframe to true, trigger a mutation record_update
@FabienArcellier FabienArcellier added the enhancement New feature or request label Jul 14, 2024
@FabienArcellier FabienArcellier self-assigned this Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant