From 050f53aef6926f12b8965897c9d5d5d70edcff5b Mon Sep 17 00:00:00 2001 From: Andreas Dalhaug Date: Mon, 23 Sep 2024 09:49:58 +0200 Subject: [PATCH] =?UTF-8?q?made=20changes=20to=20the=20first=20code=20exam?= =?UTF-8?q?ple=20in=20the=20doc=20string=20of=20aggregate=E2=80=A6=20(#194?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cognite/client/_api/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognite/client/_api/events.py b/cognite/client/_api/events.py index 9c56e3f378..1ab24d3193 100644 --- a/cognite/client/_api/events.py +++ b/cognite/client/_api/events.py @@ -299,7 +299,7 @@ def aggregate_unique_values( >>> from cognite.client import CogniteClient >>> from cognite.client.data_classes.events import EventProperty >>> client = CogniteClient() - >>> result = client.events.aggregate_unique_values(EventProperty.type) + >>> result = client.events.aggregate_unique_values(property=EventProperty.type) >>> print(result.unique) Get the unique types of events after 2020-01-01 in your CDF project: