Renaming Scenario name using Python
Savan
Dataiku DSS Core Concepts, Registered Posts: 5 ✭✭✭
I wanted to change all the scenarios name which listed on my project using Python recipe only. How I can change?
Best Answer
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,172 Neuron
Here you go:
import dataiku client_handle = dataiku.api_client() project_handle = client_handle.get_project('some project key') scenario_handle = project_handle.get_scenario('some scenario ID') scenario_settings = scenario_handle.get_settings() scenario_settings.get_raw()['name'] = 'TestScenarioNewName' scenario_settings.save()
Answers
-
Thank you very much for the solution.