Global variables list converted differently in Recipes

Registered Posts: 4 ✭✭✭✭
edited July 2024 in Using Dataiku

Hi,

Im using global variable to get the list of country as below:

Global Variable

{
"var_country_dummy": [
"malaysia",
"singapore"
]}

Python call the variable

countryArray = dataiku.get_custom_variables(typed = True)["var_country_dummy"]

When i ran the script in jupyter Notebook, the list looks like this and this is what i want.

['malaysia', 'singapore']

When i save into recipes, then build the flow, the list looks like this (log):

'm' , 'a' , 'l' , 'a' , 'y' , 's' , 'i' , 'a' , ',' , 's' , ' i' , 'n' , 'g' , 'a' , 'p' , 'o' , 'r' , 'e'

Any idea how to fix this?

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.