-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Labels
component: tabulator
Related to the Tabulator widget
Comments
@AxZolotl Thanks for reporting this. Can you please add a small reproducible example? |
Reproducible example: import pandas as pd
import panel as pn
df = pd.DataFrame([
('Germany', 2020, 9, 2.4, 'A'),
('Germany', 2021, 3, 7.3, 'C'),
('Germany', 2022, 6, 3.1, 'B'),
('UK', 2020, 5, 8.0, 'A'),
('UK', 2021, 1, 3.9, 'B'),
('UK', 2022, 9, 2.2, 'A')
], columns=['Country', 'Year', 'Int', 'Float', 'Str'])
pn.widgets.Tabulator(value=df.set_index(['Year', 'Country']), hierarchical=True,
aggregators={'Year': {'Int': 'sum', 'Float': 'mean'}}).servable() Traceback:
|
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Software Version Info
Description of expected behavior and the observed behavior
Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
The text was updated successfully, but these errors were encountered: