dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
8.92k stars 1.86k forks source link

Add a ToDataFrame(Enumerable<T> enumerable) Method #6986

Open janschreieradac opened 4 months ago

janschreieradac commented 4 months ago

I used to work with DataFrames and RStudio some years ago but only have been using C# with line of business apps in the recent years.

When tasked with a data analysis task I was happy to learn of polyglot Notebooks and that there is a DataFrame in C# which saves me from relearning R (or even worse, having to ask someone for permission)

With LINQ I am very familiar and thought it would be easy to work with dataFrames in c#.

I actually found it a bit tedious to generate a data frame from an IEnumerable and thought it should be easier, especially to help C#-devs to getting used to start with ML.NET

I wrote a very basic ToDataFrame() helper, which i guess is too slow but describes the need pretty well, I hope. It's placed here: https://github.com/janschreier/dataframehelper/tree/main

michaelgsharp commented 4 months ago

@JakeRadMSFT @luisquintanilla can you two take a look at this?