Working with DataFrames in C#
While Polyglot Notebooks gives us a wide range of capabilities in C#, F#, and other languages, the primary tool we’ll use to wrangle our data is the DataFrame class, defined in the Microsoft.Data.Analysis NuGet package and namespace.
Naming note
The Microsoft.Data.Analysis DataFrame is also referred to as the ML.NET DataFrame, due to it being included in the dotnet/MachineLearning GitHub repository that also includes ML.NET.
Using the DataFrame class, we can perform a variety of data-wrangling steps, as we’ll see throughout the chapter. Before we cover those operations, let’s explore the fundamentals of working with a DataFrame to explore its data.
We’ll start by installing our NuGet dependency and then load up a dataset of football players using the LoadCsv method, as we’ve done before.
First, we’ll start with a C# code cell to install the dependency:
#r "nuget:Microsoft.Data.Analysis,0...