Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert from type Nullable in Julia

Tags:

julia

The response from a call to the blpapi in Julia is type Array{Nullable,n}. I'd like to be able to work with the data (plot it, math operate on it). How can I get around each data point being type Nullable? Is there a way to convert to Float64?

like image 696
mattsurw Avatar asked Nov 27 '25 23:11

mattsurw


1 Answers

Thanks to Dan Getz for this.

"Suppose v is the Nullable Array, then get.(v) should be a regular Array of the values (of course, there should not be #NULL values in v)."

like image 171
mattsurw Avatar answered Dec 02 '25 05:12

mattsurw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!