Community Conundrum 10: The Titanic is now live Learn more

How to access partitions

Level 1
How to access partitions

Hello,



i want to add a variable which comes from partitioning to the table. 



So I am using the function in my python script:



dataiku.dku_flow_variables["DKU_DST_id"]



but getting the error




AttributeError: 'module' object has no attribute 'dku_flow_variables'


How to access the variable from which the partitioned are made?



Thanks.

0 Kudos
2 Replies
Dataiker
Dataiker
Hi,

Is this happening in a preparation recipe ? These variables are only available in regular Python recipes.
0 Kudos
Level 1
Author
It is a normal python recipe with a Input dataset and an output dataset. I can add the variable code by manually clicking on the variable on the left side after I validated the code successfully.
0 Kudos