plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
420 stars 74 forks source link

Built-in Summary Row that Responds to Filtering, Sorting, and Editing #433

Open vishnuvvn opened 5 years ago

vishnuvvn commented 5 years ago

We are trying to bring in a summary row for all the number columns. Looks like this is not possible in this version.

threemonks commented 4 years ago

This would have been a nice feature to have. I see this being asked on the dash plotly forum in Oct 2018 (https://community.plot.ly/t/data-table-how-to-get-sum-of-column-s/14790), but haven't seen any update there.

AnastasiyaDemi commented 4 years ago

Did you find any solution?

njlustigpk commented 4 years ago

@AnastasiyaDemi I have been searching for this as well to no avail. I can't find a way to get a simple summation column to work with an editable table.

chriddyp commented 4 years ago

Can someone share an example of what this looks like? It's not clear to me why you wouldn't be able to compute this in Pandas and display it as the first row, or even as a second header?

njlustigpk commented 4 years ago

I will put together a contrived example this weekend. You can calculate the summation column just fine with pandas the first time. The issue is that since the table is editable, the summation column doesn't update accordingly when a user changes the value in one of the cells.

threemonks commented 4 years ago

Even with read-only table, one can expect the sum to change when a filter is applied on one or more columns, as the sum would be the result of only the rows shown after filtering.

On Tue, Apr 14, 2020 at 10:08 AM njlustigpk notifications@github.com wrote:

I will put together a contrived example this weekend. You can calculate the summation column just fine with pandas the first time. The issue is that since the table is editable, the summation column doesn't update accordingly when a user changes the value in one of the cells.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/plotly/dash-table/issues/433#issuecomment-613464899, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABISJHRJ2IKBTAFZRUJ74TTRMRU6NANCNFSM4HM3JNFA .

emazika commented 3 years ago

Hi, has anyone found a solution for this?

ShamkhalHajiyev commented 2 years ago

Hi any update regarding to that?