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

Dynamically Calculating Column Aggregates #857

Closed
eunosm3 opened this issue Apr 11, 2024 · 2 comments
Closed

Dynamically Calculating Column Aggregates #857

eunosm3 opened this issue Apr 11, 2024 · 2 comments

Comments

@eunosm3
Copy link

eunosm3 commented Apr 11, 2024

This is more of a feature request, or a "How do I..." question...
I use D-Tale to display and filter portfolio holdings. As a result, I'm often interested in aggregate values for the line items being displayed. For instance, total market value or weighted-means of yields, etc. Obviously, I can calculate those figures prior to displaying them in Jupyter with D-Tale. Over time, I've realized how useful it would the aggregate values could be recalculated in real time while interacting with the dataframe.

I understand that I can manually calculate the values (maybe not the weighted mean) using D-Tales' built-in functionality through the Summarize Data menu. However, besides not being automagic, the calculated values would not react to changes made to the source data table.

Are dynamically-calculated column totals possible to do with D-Tale? Or is such a thing out of scope for it?

Alternatively, is it possible to link a widget to D-Tale somehow so that the widget displays those values in a nearby cell?

Any help would be appreciated.

@aschonfeld
Copy link
Collaborator

@eunosm3 how's this?

Aggregations.mov

aschonfeld added a commit that referenced this issue Apr 25, 2024
aschonfeld added a commit that referenced this issue Apr 26, 2024
aschonfeld added a commit that referenced this issue Apr 30, 2024
@aschonfeld
Copy link
Collaborator

@eunosm3 just added this feature in v3.12.0 on pypi. Let me know if you have any issues

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

2 participants