-
Data Quality Plugin: multi-select dropdown of column names
Hi, I have some custom Data Quality checks added to Dataiku as part of a plugin. I want to have an input variable as a multi-select dropdown list of the columns in the schema. If I use "type": "DATASET_COLUMN", I get a dropdown list but no multi-select. If I use "type": "DATASET_COLUMNS", I get the ability to add mutliple…
-
How to check the last run time of a recipe with python api?
import re import dataiku import urllib3 import datetime urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def get_project(client, project_key): return client.get_project(project_key) def get_datasets(client, project_key): project = get_project(client, project_key) return project.list_datasets() def…
-
How to retrieve the Evaluated Model name from a Model Evaluation Store via the Python API
I'm trying to pull the name of the evaluated model for a model evaluation store - e.g. the field "Evaluated model" under the category "Model" from this type of URL: https://dataikuprod.corp.{company}.org/projects/{projectkey}/modelevaluationstores/{meskey}/evaluations/{specificmekey}/report/tabular-summary I've been trying…
-
How to stack columns from one dataset
Hi, Here is a simplified schema of a basic dataset structure I need to reshape: firstname name vote col4 col5 col6 col7 col8 col9 etc.. ARTHAUD Nathalie 5 ARMAND Thierry 9 ARNAUD Bernard 6 etc.. ARTHAUD Nathalie 7 ARMAND Thierry 3 ARNAUD Bernard 8 etc.. The number of columns in this is variable but it will always be a…
-
I can't dynamically select a notebook in a DSS macro + Using Python API to access notebooks fails
I’m trying to create a project macro in DSS 14.2.2 that allows a user to select a notebook from a dropdown and then perform actions on it (e.g., add a code block). Problems encountered: The dropdown appears in the macro UI, but it never shows any options. (I want all projects' notebooks). Attempting to use the Python API…
-
Python script to visual recipes conversion
I have an existing Python script that needs to be converted into Dataiku visual recipes. Is there any supported or automated way in Dataiku to generate visual recipes from Python code, or does this need to be done manually?
-
How to share objects using the Dataiku API
Hi, It appears that the settings.add_exposed_object() method is undocumented. So documenting here few examples for the benefit of others: import dataiku client = dataiku.api_client() project = client.get_project(source_project_key) settings = project.get_settings() # Share Managed Folder…
-
How to find un-used shared-in datasets of a project with python API ?
Thanks for your time at the beginning. I have a project and I want to know which datasets are shared-in from other projects (black icons) with Python API. However, those shared-in datasets could be seperated into 2 group: ① unused: just showing in in the zone for checking ② used: being used through recipe for analyzing I…
-
Custom recipe: Default value not work for values from API
In plugin I cannot see default value for field in recipe.json, when value comes from API. In recipe.json I have field: { "name": "field", "label": "Field", "type": "SELECT", "getChoicesFromPython": true, "mandatory": true, "defaultValue": "Default", }, In above code default value is set to "Default", but it is not set in…
-
Meet "Connection xxx not found" when exporting a project
Thanks for your time at the beginning. I am currently exporting a project, only check the 4 default options. However, it failed with a warning "An invalid argument has been encountered : Connection 'SF_VAW_PROD_ATP_MED' does not exist"Then I tried to use Python API to find this connection, but failed again: import dataiku…