I have a Deedle series with election data, for example:
"Party A", 304
"Party B", 25
"Party C", 570
....
"Party Y", 2
"Party Z", 258
I would like to create a new series like this:
"Party C", 570
"Party A", 304
"Party Z", 258
"Others", 145
So, I want to take the top 3 as they are, and summarize all the others as a new line. What is the best way to do this?
source
share