Closed naarkhoo closed 3 years ago
Hi @naarkhoo would you be able to post your MyOwnDataSet
implementation? I have a sneaking suspicion you haven't implemented all of the required methods defined in the interface.
Are you using an IDE? I personally use PyCharm as it gives you a nudge to implement the bits that are missing:
When I add the super class call, it generates the following constructor signature:
I think the error you are getting refers to one of the two version
arguments I've highlighted below.
__init__() missing 1 required positional argument: 'version'.
Also - off topic if you are looking to read *.csv.gz
files you can do this natively with the existing pandas.CSVDataSet
dataset.
That Joel,
I was just copy/pasting the example https://kedro.readthedocs.io/en/latest/kedro.io.AbstractVersionedDataSet.html
the problem was I was using version
instead of versioned
in my YAML file. I thought the YAML key word is the same as the argument in the class. now it is fixed - I am going ahead to do changes to make it read as datatable
and it seems the parameter versioned
can not be set false - or only true is the correct value. even it does not work if I remove it from the YAML files. (it complains). perhaps this behavior deserves another ticket.
Description
short: I can't reproduce AbstractVersionedDataSet example provided https://kedro.readthedocs.io/en/latest/kedro.io.AbstractVersionedDataSet.html
Context
I was trying to read files as datatabe - I have been getting some other related to the other example https://kedro.readthedocs.io/en/stable/07_extend_kedro/03_custom_datasets.html#implement-the-load-method-with-fsspec - saying the object doesn't have .load attribute.
Steps to Reproduce
make file structure similar to what is described (src/package_name/extracs/datasets)
make a yaml file like
[And so on...]
Expected Result
to read the csv file and print
Actual Result
error
Your Environment
Include as many relevant details about the environment in which you experienced the bug: