kedro icon indicating copy to clipboard operation
kedro copied to clipboard

pandas.CSVDataSet in Tutorials needs to be replaced by pandas.CSVDataset with the lowercase "s"

Open ferrotem opened this issue 10 months ago • 1 comments

Description

if we run kedro catalog list with pandas.CSVDataSet with uppercase "S" in set, it gives a following error:

kedro.framework.cli.utils.KedroCliError: Unable to instantiate Kedro Catalog. Error: An exception occurred when parsing config for dataset 'test': Class 'pandas.CSVDataSet' not found, is this a typo? Run with --verbose to see the full exception

Documentation page (if applicable)

https://docs.kedro.org/en/stable/tutorial/set_up_data.html

Context

ferrotem avatar Apr 26 '24 11:04 ferrotem

From kedro-datasets 2.0.0 we changed the dataset names from capital "S" to lower case "s". pandas.CSVDataSet -> pandas.CSVDataset. I checked the tutorial, it also has the datasets with the lower case "s". If you're using kedro-datasets>=2.0.0 you'd need to replace DataSet with Dataset in your catalog! Is there anywhere else we've missed updating it? @ferrotem

ankatiyar avatar May 01 '24 12:05 ankatiyar

@ankatiyar Thank you very much, now everything is OK.

ferrotem avatar May 03 '24 08:05 ferrotem