Skip to content

Commit 898566b

Browse files
fix: example usage for the Python API
1 parent 059ff89 commit 898566b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

kedro-datasets/kedro_datasets_experimental/pandas/delta_sharing_dataset.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ class DeltaSharingDataset(AbstractDataset):
3838
3939
.. code-block:: pycon
4040
41-
>>> from kedro_datasets import DeltaSharingDataset
42-
>>> import pandas as pd
41+
>>> from kedro_datasets_experimental.pandas import DeltaSharingDataset
4342
>>>
4443
>>> credentials = {
4544
... "profile_file": "conf/local/config.share"

kedro-datasets/test.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from kedro_datasets_experimental.pandas import DeltaSharingDataset
2+
3+
credentials = {
4+
"profile_file": "open-datasets.share"
5+
}
6+
7+
load_args = {
8+
"limit": 10,
9+
}
10+
11+
dataset = DeltaSharingDataset(
12+
share="delta_sharing",
13+
schema="default",
14+
table="nyctaxi_2019",
15+
credentials=credentials,
16+
load_args=load_args
17+
)
18+
19+
data = dataset.load()
20+
print(data)

0 commit comments

Comments
 (0)