fslaborg / Deedle

Easy to use .NET library for data and time series manipulation and for scientific programming
http://fslab.org/Deedle/
BSD 2-Clause "Simplified" License
924 stars 196 forks source link

Add functions to convert between jagged arrays and frames #532

Closed kMutagene closed 2 years ago

kMutagene commented 2 years ago

Content

This PR adds functions to:

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 by Frame.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.

zyzhu commented 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!

zyzhu commented 2 years ago

@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.

kMutagene commented 2 years ago

@zyzhu sure, that would be great!

zyzhu commented 2 years ago

That's great! Just added you as maintainer of the project now. I also sent you invitation on nuget.