Calling dataset from API deisgner failed

Rachel
Rachel Registered Posts: 4 ✭✭

How to call the dataset in Python function from API designer?

im using Python function, and in the function, I'm using below function:

def testing_example(parameter1):

dataset = dataiku.Dataset("datasetname",project_key="project_id")
df = dataset.get_dataframe()

But it fails. Any idea how to solve this?

Answers

Setup Info
    Tags
      Help me…