Skip to content

Binning problem #1054

Answered by lwhite1
rsneumann asked this question in Q&A
Mar 13, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The first thing that comes to mind is to create a new column for the quantity intervals and then use mapInto() which takes as arguments a function and and the new column. It's something like

quantity.mapInto(myFunctionThatTakesAnIntAndReturnsAString, myOutputColumn)

Then you can just use the usual summarize().by() to do the calculations.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rsneumann
Comment options

Answer selected by lwhite1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants