From e5a9b875013675f714a3da337e0adf564f495dc4 Mon Sep 17 00:00:00 2001 From: Grant Smith Date: Wed, 1 Sep 2021 15:41:38 -0400 Subject: [PATCH] - Update ds_query documentation to properly note a string is expected instead of a dictionary --- pydomo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydomo/__init__.py b/pydomo/__init__.py index 7f87a3b..f7485b8 100644 --- a/pydomo/__init__.py +++ b/pydomo/__init__.py @@ -152,13 +152,13 @@ def ds_query(self, dataset_id, query, return_data=True): """ Evaluate query and return dataset in a dataframe - >>> query = {"sql": "SELECT * FROM table LIMIT 2"} + >>> query = "SELECT * FROM table LIMIT 2" >>> ds = domo.ds_query('80268aef-e6a1-44f6-a84c-f849d9db05fb', query) >>> print(ds.head()) :Parameters: - `dataset_id`: id of a dataset (str) - - `query`: query object (dict) + - `query`: query (str) - `return_data`: should the result be a dataframe. Default True (Boolean) :Returns: