f# - Is there an easy way to apply a mass transformation to a Deedle frame? -


i have deedle frame in fsharp 45 columns every column contains floats. i'd create new frame applying transformation every entry in original frame. transformation simple function follows:

let minuslogofoneless x = -log (1.0-x) 

is there easy way this?

it looks we've missed unary minus operator when adding operators deedle frames! aside unary minus, rest works already.

so can change -log(...) -1.0 * log(...):

let minuslogofoneless (x:frame<_, _>) = -1.0 * (log (1.0 - x))  frame [ "a" => series [1=>0.5; 2=>0.4]] |> minuslogofoneless  

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -