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

Ensure Tabulator styler subset logic is not lost #5938

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading