Custom variables type always string ?

Options
dmajard
dmajard Registered Posts: 6 ✭✭✭✭
Hi,

I have defined some global variables in a flow, and these are integers, lists and stings. Yet when I use dataiku.get_custom_variables() in python everything is a string.

Doesn't JSON support these types?



Cheers,

Dany
Tagged:

Best Answer

  • Alex_Combessie
    Alex_Combessie Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭
    edited July 18 Answer ✓
    Options

    Hi,

    To do what you want, you can use the argument "typed" as shown below:


    dataiku.get_custom_variables(typed = True)

    Hope it helps,

    Alex

Answers

Setup Info
    Tags
      Help me…