Read inferred meanings from dataiku datasets in python recipe
MGad
Registered Posts: 14 ✭✭✭✭
Hello,
I'm currently writing a python recipe where I need to read the inferred meaning of each input dataset column. Is this possible ?
Thx for your help
Answers
-
Hi @MGad
Inferred meanings are inferred from the sample in a dataset view (or prepare recipe), hence not accessible as part of the dataset definition.
However, if you have yourself "set" the meanings of a dataset, then these would be accessible as follows:
import dataiku from dataiku import pandasutils as pdu dataset = dataiku.Dataset(datasetName) dataset.get_config()['schema']['columns']
I hope this helps!
-
Oh ok, that's too bad, this feature would be very useful in my case... I suppose there's no way to apply the inference logic outside the dataset view ?