From 9fe25934309f6ef208ffc169e66c39445e0a419b Mon Sep 17 00:00:00 2001 From: cailiang9 Date: Fri, 25 Jun 2021 11:13:15 +0800 Subject: [PATCH] use df.at to support more complex value edition use df.at to support more complex value edition, such as list/tuple/dict value assignment. --- qgrid/grid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qgrid/grid.py b/qgrid/grid.py index 44887b25..ac0947c6 100644 --- a/qgrid/grid.py +++ b/qgrid/grid.py @@ -1707,8 +1707,8 @@ def edit_cell(self, index, column, value): The new value for the cell. """ old_value = self._df.loc[index, column] - self._df.loc[index, column] = value - self._unfiltered_df.loc[index, column] = value + self._df.at[index, column] = value + self._unfiltered_df.at[index, column] = value self._update_table(triggered_by='edit_cell', fire_data_change_event=True)