From 563d344adb54d51b7bce78e64b0bc4d6337827fc Mon Sep 17 00:00:00 2001 From: roshangoli Date: Tue, 29 Apr 2025 16:33:29 -0500 Subject: [PATCH 1/2] Update docstring to clarify dataset_id can be name or ID (fixes #1066) --- openml/datasets/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openml/datasets/functions.py b/openml/datasets/functions.py index 3f3c709f9..887792cdd 100644 --- a/openml/datasets/functions.py +++ b/openml/datasets/functions.py @@ -479,7 +479,7 @@ def get_dataset( # noqa: C901, PLR0912 Parameters ---------- dataset_id : int or str - The ID or name of the dataset to download. + Dataset ID (integer) or dataset name (string) of the dataset to download. download_data : bool (default=False) If True, also download the data file. Beware that some datasets are large and it might make the operation noticeably slower. Metadata is also still retrieved. From 38b29f90d6bf5dd801396a404f766c733bc5afd9 Mon Sep 17 00:00:00 2001 From: Pieter Gijsbers Date: Mon, 5 May 2025 16:12:38 +0200 Subject: [PATCH 2/2] Add indentation --- openml/datasets/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openml/datasets/functions.py b/openml/datasets/functions.py index 887792cdd..026515e5d 100644 --- a/openml/datasets/functions.py +++ b/openml/datasets/functions.py @@ -479,7 +479,7 @@ def get_dataset( # noqa: C901, PLR0912 Parameters ---------- dataset_id : int or str - Dataset ID (integer) or dataset name (string) of the dataset to download. + Dataset ID (integer) or dataset name (string) of the dataset to download. download_data : bool (default=False) If True, also download the data file. Beware that some datasets are large and it might make the operation noticeably slower. Metadata is also still retrieved.