From b94281ffece3cc842c799a8b662ce07b9b5e1323 Mon Sep 17 00:00:00 2001 From: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> Date: Tue, 1 Aug 2023 11:11:49 +0100 Subject: [PATCH] Update deltatable_dataset.py --- .../pandas/deltatable_dataset.py | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/kedro-datasets/kedro_datasets/pandas/deltatable_dataset.py b/kedro-datasets/kedro_datasets/pandas/deltatable_dataset.py index 16eefca25..03cb6e4e3 100644 --- a/kedro-datasets/kedro_datasets/pandas/deltatable_dataset.py +++ b/kedro-datasets/kedro_datasets/pandas/deltatable_dataset.py @@ -56,19 +56,19 @@ class DeltaTableDataSet(AbstractDataSet): # pylint:disable=too-many-instance-at Example usage for the `Python API`_: :: - >>> from kedro_datasets.pandas import DeltaTableDataSet - >>> import pandas as pd - >>> - >>> data = pd.DataFrame({'col1': [1, 2], 'col2': [4, 5], 'col3': [5, 6]}) - >>> data_set = DeltaTableDataSet(filepath="test") - >>> - >>> data_set.save(data) - >>> reloaded = data_set.load() - >>> assert data.equals(reloaded) - >>> - >>> new_data = pd.DataFrame({'col1': [7, 8], 'col2': [9, 10], 'col3': [11, 12]}) - >>> data_set.save(new_data) - >>> data_set.get_loaded_version() + >>> from kedro_datasets.pandas import DeltaTableDataSet + >>> import pandas as pd + >>> + >>> data = pd.DataFrame({'col1': [1, 2], 'col2': [4, 5], 'col3': [5, 6]}) + >>> data_set = DeltaTableDataSet(filepath="test") + >>> + >>> data_set.save(data) + >>> reloaded = data_set.load() + >>> assert data.equals(reloaded) + >>> + >>> new_data = pd.DataFrame({'col1': [7, 8], 'col2': [9, 10], 'col3': [11, 12]}) + >>> data_set.save(new_data) + >>> data_set.get_loaded_version() """