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

Tabulator: Separate aggregators for different columns blocked by type hint #7281

Open
AxZolotl opened this issue Sep 15, 2024 · 0 comments
Open

Comments

@AxZolotl
Copy link

Software Version Info
panel 1.4.5 

Description of expected behavior and the observed behavior

  • 'If separate aggregators for different columns are required the dictionary may be nested as {index_name: {column_name: aggregator}}'
  • Aggregators parameter in class DataTabulator accepts only Dict(String, String)

Complete, minimal, self-contained example code that reproduces the issue

pn.widgets.Tabulator(
            value = value, 
            hierarchical = True, 
            aggregators = {index_name: {column_name: aggregator}}

Stack traceback and/or browser JavaScript console output

ValueError: failed to validate DataTabulator(id=id, ...).aggregators: expected a dict of type Dict(String, String), got a dict with invalid values for keys: index_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant