kedro
kedro copied to clipboard
pandas.CSVDataSet in Tutorials needs to be replaced by pandas.CSVDataset with the lowercase "s"
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
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 Thank you very much, now everything is OK.