Added example for converting sqlite data into a Frame.
This commit is contained in:
parent
c0065af78f
commit
931b2a69df
15
example.fsx
15
example.fsx
|
@ -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"]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue