Getting Started With C# DataFrame and XPlot.Ploty

Getting Started With C# DataFrame and XPlot.Ploty

For the Python programming language, Pandas is an efficient and popular data analysis tool, especially its Dataframe, used to manipulate and display data.

For the Python programming language, Pandas is an efficient and popular data analysis tool, especially its Dataframe, used to manipulate and display data. For the .NET programming languages, we can use Deedle or Microsoft.Data.Analysis package available in NuGet which also provides a DataFrame class used to manipulate, transform, and display data.

This example focuses on Microsoft.Data.Analysis package by demonstrating some basic features of the DataFrame class in Jupyter Notebook.

It also uses the XPlot.Plotly package which is F## data visualization package to plot charts for the data in the Dataframe. The source code is available on GitHub.

Prerequisite

To run examples in this article, please refer to this Using .NET Core in Jupyter Notebook article for setting up Jupyter Notebook to support the .NET programming languages.

Install the Package

The Microsoft.Data.Analysis package is available in Nuget so the dotnet-interactive #r magic command can be used to install the package from NuGet.

Run the below command to install Microsoft.Data.Analysis package version 0.4.0.

C#

Refer the Namespaces

This article uses classes from the following four packages. Therefore, it uses the using statement to refer to those packages.

  • XPlot.Plotly: A cross-platform data visualization package for the F## and .NET programming languages
  • Microsoft.Data.Analysis: An easy-to-use and high-performance libraries for data analysis and transformation
  • System.Linq: Classes and interfaces that support queries that use Language-Integrated Query
  • Microsoft.AspNetCore.Html: Types for manipulating HTML content

C#

Render a DataFrame as an HTML Table

By default, a DataFrame is rendered as an HTML table with one row and two columns (Columns and Rows).

tutorial c# webdev c# tutorial dataframe plotly

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

C++ Tutorial From Basic to Advance

C++ Tutorial From Basic to Advance Learn more C++ tutorial @ https://bit.ly/intmaincpp Java tutorial : http://bit.ly/2KMSzfD Learn C++ Tutorials in 9 Hours T...

C++ Tutorials - If Else Statement In C++

In this C++ Tutorial we are going to talk about If Else Statement in C++ . using conditional statement we can execute some section of the code according to a condition. and particularly in this article we make some examples of if else condition. using if statement you can control if a program enters a section of code or not based on whether a given condition is true or false.

Learn C# Basics - Complete C# Tutorial For Beginners

In this C# tutorial for complete beginners you will learn C# programming from scratch. We hope you enjoy our C Sharp beginners tutorial!

C++ Tutorial - Loops In C++ [For Loop, While Loop, Do While Loop]

In this C++ Tutorials we are going to talk about Loops In C++, we are going to learn different C++ Loops like For Loop, While Loop and Do While Loop. There may be a situation, when you need to execute a block of code several number of times, using loops you can do these kind of functionalities. A loop statement allows us to execute a statement or group of statements multiple times. There are different types of loops that you can use in c++, for loop, while loop, do while loop, also there are different control statements like break and continue in c++ loops, using control statements we can change the execution of loops from its normal sequence.

Delegates in C# | Delegates and events | what is a delegates | C# Tutorial | Advanced C#

LIKE | COMMENT | SHARE | SUBSCRIBE In this tutorial, I will discussed about delegates in C#. What is delegates ? In simple word delegates contains the refere...