Skip to content

Commit

Permalink
Ensure Tabulator styler subset logic is not lost (#5938)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Nov 29, 2023
1 parent 39ec575 commit 9899bc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions panel/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ def styler_update(styler, new_df):
todos.append(todo)
continue
ops = []
print(todo)
for op in todo:
if not isinstance(op, tuple):
ops.append(op)
Expand All @@ -459,6 +460,8 @@ def styler_update(styler, new_df):
applies = np.array([
new_df[col].dtype.kind in 'uif' for col in new_df.columns
])
if len(op[2]) == len(applies):
applies = np.logical_and(applies, op[2])
op = (op[0], op[1], applies)
ops.append(op)
todo = tuple(ops)
Expand Down

0 comments on commit 9899bc7

Please sign in to comment.