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

multi-dimensional aggregation + aggregation functions for community sizes etc. #2182

Closed
jexp opened this issue Aug 20, 2021 · 1 comment
Closed

Comments

@jexp
Copy link
Member

jexp commented Aug 20, 2021

For a property you want to have more than one statistic:

size, count, avg, median, ...

which is probably already covered by apoc.agg.stats()

but then, how about multi-dimensional aggregation.

e.g.

apoc.agg.multiStats([key1,key2,key3]) -> Map<Key,Map<agg="sum,count,avg", number>>

e.g.

match (p:Person)
with apoc.agg.multiStats(p, ["wcc","lpa","louvain"]) as data
match (p:Person) 
return p.name, data[toString(p.wcc)].count as size

see
https://community.neo4j.com/t/listing-the-community-size-of-different-community-detection-algorithms-already-calculated/42895/2?u=michael.hunger

@jexp jexp self-assigned this Aug 20, 2021
@jexp jexp moved this to Todo in APOC Extended Larus Sep 21, 2023
@vga91 vga91 moved this from Todo to In Progress in APOC Extended Larus Jan 30, 2024
@vga91 vga91 moved this from In Progress to Review in APOC Extended Larus Feb 13, 2024
@RobertoSannino RobertoSannino moved this from Review to Blocked in APOC Extended Larus Mar 5, 2024
vga91 added a commit that referenced this issue Apr 16, 2024
RobertoSannino pushed a commit that referenced this issue Apr 17, 2024
…r community sizes (#4049)

* Fixes #2182: multi-dimensional aggregation + aggregation functions for community sizes

* removed unused imports

* updated extended.txt
RobertoSannino pushed a commit that referenced this issue May 15, 2024
* Fixes #2182: added apoc.agg.rollup procedure

* updated extended.txt
@vga91 vga91 closed this as completed Jun 26, 2024
@github-project-automation github-project-automation bot moved this from Blocked to Done (to cherry-pick) in APOC Extended Larus Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done (to cherry-pick)
Development

No branches or pull requests

2 participants