I have a deedle frame with two columns containing DateTime timestamps. I would like to calculate the difference (timaspan) between the two
type Test = {
id : int;
start : DateTime;
finish : DateTime }
let testData = [
{id = 1; start = DateTime.Parse("13.01.2014 00:45:38"); finish = DateTime.Parse("13.01.2014 03:15:39")};
{id = 2; start = DateTime.Parse("15.01.2014 00:30:38"); finish = DateTime.Parse("16.01.2014 01:07:39")}]
let testFrame = Frame.ofRecords testData
testFrame?TimeSpan <- testFrame |> Frame.mapRowValues (fun row ->
row?finish - row?start )