Discover this year's submissions to the Dataiku Frontrunner Awards and give kudos to your favorite use cases and success stories!READ MORE

Read inferred meanings from dataiku datasets in python recipe

MGad
Level 3
Read inferred meanings from dataiku datasets in python recipe

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

0 Kudos
2 Replies
Liev
Dataiker Alumni

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!

0 Kudos
MGad
Level 3
Author

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 ?

0 Kudos