Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on July 2, 2024 1:37PM
Likes: 0
Replies: 1
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?
The API node is outside DSS so you need to connect to it first.
import dataiku dataiku.set_remote_dss("http://DSS_local_URL:DSS_PORT", "API_secret") dataset = dataiku.Dataset("datasetname", project_key="PROJECT_KEY") dataset_df = dataset.get_dataframe() dataset_df.head()