Added example for converting sqlite data into a Frame.

This commit is contained in:
Achim D. Brucker 2017-06-27 10:54:57 +01:00
parent c0065af78f
commit 931b2a69df
1 changed files with 15 additions and 0 deletions

View File

@ -60,3 +60,18 @@ let ExtIds = ["aaagbdompnfgjaokopkpaceijcapjdde"
|> Chart.WithOptions (Options(legend=Legend(position="bottom")))
|> Chart.WithLabels ExtIds
let permissionFrame = Ctx.Main.Crx |> Frame.ofRecords
permissionFrame.Print true |> ignore
let extData =
query {for x in Ctx.Main.Extension do
select (x.Date, x.Name, x.Downloads) }
|> Seq.filter (fun (date, name, download) -> date.IsSome && name.IsSome && download.IsSome)
|> Seq.map (fun (date, name, download) -> (System.DateTime.Parse(date.Value), name.Value,
download.Value))
|> Frame.ofRecords
|> Frame.indexColsWith ["Date"; "Name"; "Downloads"]