3 ms·groupByToMap would be useful in that case as pointed out in another comment. Updated the post with that.by saranshk 5y agogroupByToMap would be useful in that case as pointed out in another comment. Updated the post with that.