Closed kMutagene closed 2 years ago
It's indeed a convenience function, especially from C# as there is no helper function array2D
in C#. Thanks for your review @FoggyFinder!
@kMutagene, I've released 2.4.1. BTW, would you like to be a co-maintainer of this project? As you are the main contributor to FsLab ecosystem, it could help you to iterate faster.
@zyzhu sure, that would be great!
That's great! Just added you as maintainer of the project now. I also sent you invitation on nuget.
Content
This PR adds functions to:
FromJaggedArray
for C#,ofJaggedArray
for F#toJaggedArray<'R>
for any type of conversion for the frame data (returns 'R[][])Frame.toJaggedArray
to return afloat [][]
analogously toFrame.ToArray2D
Why?
These are simply convenience functions that improve interop with Plotly.NET. I often handle data frames with numeric values only, where i want to visualize the contents after some transformations with Deedle. Charts that accept two-dimensional data in Plotly.NET expect data as jagged arrays, so i would love to see this added as it prevents a clunky conversion step from the
Array2D
obtained byFrame.ToArray2D
and the chart initialization.additional notes
The build fails for me with an outdated log format, so i updated build dependencies and fake as well, if that breaks anything please let me know.