diff --git a/kedro-datasets/kedro_datasets_experimental/pandas/delta_sharing_dataset.py b/kedro-datasets/kedro_datasets_experimental/pandas/delta_sharing_dataset.py index 03bb1808f..b92287e4a 100644 --- a/kedro-datasets/kedro_datasets_experimental/pandas/delta_sharing_dataset.py +++ b/kedro-datasets/kedro_datasets_experimental/pandas/delta_sharing_dataset.py @@ -38,8 +38,7 @@ class DeltaSharingDataset(AbstractDataset): .. code-block:: pycon - >>> from kedro_datasets import DeltaSharingDataset - >>> import pandas as pd + >>> from kedro_datasets_experimental.pandas import DeltaSharingDataset >>> >>> credentials = { ... "profile_file": "conf/local/config.share" diff --git a/kedro-datasets/test.py b/kedro-datasets/test.py new file mode 100644 index 000000000..8395a95b8 --- /dev/null +++ b/kedro-datasets/test.py @@ -0,0 +1,20 @@ +from kedro_datasets_experimental.pandas import DeltaSharingDataset + +credentials = { + "profile_file": "open-datasets.share" + } + +load_args = { + "limit": 10, +} + +dataset = DeltaSharingDataset( + share="delta_sharing", + schema="default", + table="nyctaxi_2019", + credentials=credentials, + load_args=load_args +) + +data = dataset.load() +print(data) \ No newline at end of file