Survey banner
The Dataiku Community is moving to a new home! We are temporary in read only mode: LEARN MORE

Python recipe - iterate through inputs

Level 3
Python recipe - iterate through inputs

Possibly a newbie question, but here goes.

I am writing a Python recipe with several input datasets. Within the recipe, I'd like to loop through the inputs, doing some work on each in turn.

What would be an efficient way to code that?

Thanks in advance.

0 Kudos
1 Reply


This is possible if you are running DSS 9:

import dataiku
import dataiku.recipe

for dataset in recipe.get_inputs():
    print("working on dataset %s" %
    df = dataset.get_dataframe()
    # Work with the df ...
0 Kudos