Skip to content

Commit

Permalink
fix: example usage for the Python API
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Carvalho <[email protected]>
  • Loading branch information
hugodscarvalho committed Sep 30, 2024
1 parent 626b248 commit ba425ad
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
20 changes: 20 additions & 0 deletions kedro-datasets/test.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit ba425ad

Please sign in to comment.