Jump to content

Recommended Posts

Posted

Hi,

As far as I tested, data type is converted as below, some of them are inconsistent.

 

Format: Data type of input parameter from spotfire -> data type in Python -> data type of output parameter to Spotfire

Integer -> numpy.int64 -> Integer

Real -> numpy.float64 -> SingleReal(should be Real)

SingleReal -> str (should be numpy.float32) -> String (should be SingleReal)

Currency -> numpy.float64 -> SingleReal (should be Currency)

String -> str -> String

Date -> str(should be "date") -> String (should be Date)

Time -> str(should be "time") -> String (should be Time)

DateTime -> str(should be "datetime") -> String (should be DateTime)

Boolean -> numpy.bool_ -> Boolean

LongInteger -> numpy.int64 -> LongInteger/Integer depends on value (should be LongInteger always)

 

Pelase see attached example dxp.

Best regards,

Wei Li

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...