From 9b8ad5cd2926a9f24487ea9479cebe651613a3a0 Mon Sep 17 00:00:00 2001 From: kberket Date: Thu, 18 Jan 2024 14:51:18 -0500 Subject: [PATCH] fix groupby documentation --- src/maggma/stores/open_data.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/maggma/stores/open_data.py b/src/maggma/stores/open_data.py index 89702ece7..5104424d0 100644 --- a/src/maggma/stores/open_data.py +++ b/src/maggma/stores/open_data.py @@ -275,7 +275,9 @@ def groupby( Args: keys: fields to group documents - criteria: PyMongo filter for documents to search in + criteria: the value of the `query` key will be used as the + Pandas string expression to query with; + all other data will be ignored properties: properties to return in grouped documents sort: Dictionary of sort order for fields. Keys are field names and values are 1 for ascending or -1 for descending.