2 Replies Latest reply on Jun 7, 2018 4:13 PM by Nathan Mannheimer

    TabPy: Pass N/A values from Python to Tableau

    Elias Strehle

      I am using TabPy via SCRIPT_REAL() to create a Calculated Field. Python returns a list of real numbers; some return values, however, are N/A. So the return values look something like this: [nan, nan, 1.0, 2.0].

      Upon execution, Tableau fails with the error message 'Invalid JSON'.

      What is the best way to deal with N/A return values in SCRIPT_REAL()?