Skip to content

Commit

Permalink
Merge pull request #818 from finos/order-fix
Browse files Browse the repository at this point in the history
Fix misordered columns in update
  • Loading branch information
texodus authored Nov 18, 2019
2 parents 71db00f + f89b204 commit 013cd59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/perspective/perspective/table/table.py
Original file line number Diff line number Diff line change
@@ -151,7 +151,7 @@ def update(self, data):
Args:
data (dict|list|dataframe) : the data with which to update the Table
'''
columns = self.columns()
columns = [name for name in self._table.get_schema().columns() if name != "psp_okey"]
types = self._table.get_schema().types()
self._accessor = _PerspectiveAccessor(data)
self._accessor._names = columns + [name for name in self._accessor._names if name == "__INDEX__"]

0 comments on commit 013cd59

Please sign in to comment.