Skip to content

Commit

Permalink
return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Lefévère-Laoide authored and Fred Lefévère-Laoide committed Jan 30, 2025
1 parent 5481f7c commit c31d967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taipy/gui/data/pandas_data_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def __get_data( # noqa: C901
if paged:
if _PandasDataAccessor.__INDEX_COL not in df.columns:
is_copied = True
df = df.assign(**{_PandasDataAccessor.__INDEX_COL: df.index})
df = df.assign(**{_PandasDataAccessor.__INDEX_COL: df.index.to_numpy()})
if columns and _PandasDataAccessor.__INDEX_COL not in columns:
columns.append(_PandasDataAccessor.__INDEX_COL)
# optional columns
Expand Down Expand Up @@ -541,7 +541,7 @@ def get_data(
return self.__get_data(var_name, self._to_dataframe(value), payload, data_format)

def _get_index_value(self, index: t.Any) -> t.Any:
tuple(*index) if isinstance(index, list) else index
return tuple(index) if isinstance(index, list) else index

def on_edit(self, value: t.Any, payload: t.Dict[str, t.Any]):
df = self.to_pandas(value)
Expand Down

0 comments on commit c31d967

Please sign in to comment.