Deedle
Deedle copied to clipboard
Heterogeneous frames and the use of the 'Frame' module in Deedle do not work when Ploly.NET is also opened
It seems that opening Plotly.NET in an interactive notebook along with Deedle affects the Frame module. Once Plotly.NET is opened, a heterogeneous Frame cannot be created.
The following was tested in a Polyglot interactive notebook in VSCode. This works with only Deedle opened:
open Deedle
open Deedle.Interactive
//open Plotly.NET
let n = Series.ofValues( ["Alice"] )
let a = Series.ofValues [30]
let l = Series.ofValues ["New York"]
let state_names = ["Name"; "Age"; "City"]
let df = Frame( state_names, [n; a; l])
df
However, once Plotly.NET is opened/uncommented, it fails with:
Error: input.fsx (42,34)-(42,35) typecheck error All elements of a list must be implicitly convertible to the type of the first element, which here is 'string'. This element has type 'int'. input.fsx (42,10)-(42,40) typecheck error The object constructor 'Frame' takes 0 argument(s) but is here given 2. The required signature is 'new: unit -> Frame.