From the course: Exploring Data Science with .NET using Polyglot Notebooks & ML.NET
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Getting values from individual columns
From the course: Exploring Data Science with .NET using Polyglot Notebooks & ML.NET
Getting values from individual columns
- [Instructor] Over the next few videos, we'll be generating charts using Plotly.NET. Plotly.NET is a wrapper around the Plotly Charting Library, which is a very full-featured and rich and interactive charting library. In order to start working with Plotly.NET, we'll need to import a pair of nuget packages, which I've already done. First, we import Plotly.NET, which is the core charting library. Next, we import Plotly.NET.Interactive. This nuget package adds integrations between Plotly.NET and .NET.Interactive and Polyglot Notebooks, so we can see our charts in our notebook environment. The other thing that Plotly.NET expects is a sequence of float or single values. Plotly.NET cannot work directly with a data frame right now, so we're going to need to take values we care about out of our data frame and into a sequence of values. So, we'll do that with our Total column. So, if we look at our data frame, it has a Total column that has a total for each order in the record set. Now, I…