Przejdź do treści stopki
POMOC .NET

Deedle C# (jak to działa dla programistów)

Deedle C

Deedle to potężna biblioteka do manipulacji danymi i analizy danych. Oferuje pełne ramki danych i serie, umożliwiając wydajną pracę ze strukturalnymi ramkami danych. Deedle udostępnia narzędzia do obsługi brakujących danych, wyrównywania danych oraz stosowania funkcji pomocniczych ze statycznymi składowymi ofNullables i ofObservations. Jest szeroko stosowana w nauce o danych ze względu na elastyczność i wydajność.

IronPDF to biblioteka do tworzenia i manipulowania dokumentami PDF w środowisku .NET. Umożliwia generowanie plików PDF z HTML, konwersję obrazów do PDF oraz wyodrębnianie zawartości z plików PDF. IronPDF upraszcza zadania związane z plikami PDF w projektach .NET.

W tym artykule dowiesz się, jak rozpocząć pracę z Deedle dla C#, skonfigurować ją w projektach .NET przy użyciu Visual Studio oraz wdrożyć kluczowe funkcje z automatycznie generowaną dokumentacją. Znajdziesz tu przykłady kodu i wyjaśnienia, które pomogą Ci efektywnie korzystać z Deedle, w tym jak stosować określoną funkcję.

Pierwsze kroki z Deedle w C

Konfiguracja Deedle w projektach .NET

Zacznij od utworzenia nowego projektu aplikacji konsolowej C# w Visual Studio.

Aby użyć Deedle w projekcie .NET, musisz zainstalować pakiet NuGet Deedle. Uruchom następujące polecenie w konsoli NuGet:

Install-Package Deedle

Po instalacji zaimportuj przestrzeń nazw Deedle do swojego projektu:

using Deedle;
using Deedle;
Imports Deedle
$vbLabelText   $csharpLabel

Podstawowy przykład kodu

Zacznijmy od podstawowego przykładu tworzenia i manipulowania ramką danych. Pomoże to zrozumieć podstawy Deedle.

using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Creating a series with integer keys and double values
        var series = new Series<int, double>(new[] { 1, 2, 3 }, new[] { 3.5, 4.2, 5.1 });
        Console.WriteLine("Series:");
        Console.WriteLine(series);

        // Creating a data frame from a 2D array
        var rowIndex = new[] { 1, 2, 3 };
        var colIndex = new[] { "A", "B" };
        var data = new double[,] { { 1.0, 3.5 }, { 2.0, 4.2 }, { 3.0, 5.1 } };
        var dataFrame = Frame.FromArray2D(data)
                             .IndexRowsWith(rowIndex)
                             .IndexColumnsWith(colIndex);
        Console.WriteLine("Data Frame:");
        Console.WriteLine(dataFrame);
    }
}
using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Creating a series with integer keys and double values
        var series = new Series<int, double>(new[] { 1, 2, 3 }, new[] { 3.5, 4.2, 5.1 });
        Console.WriteLine("Series:");
        Console.WriteLine(series);

        // Creating a data frame from a 2D array
        var rowIndex = new[] { 1, 2, 3 };
        var colIndex = new[] { "A", "B" };
        var data = new double[,] { { 1.0, 3.5 }, { 2.0, 4.2 }, { 3.0, 5.1 } };
        var dataFrame = Frame.FromArray2D(data)
                             .IndexRowsWith(rowIndex)
                             .IndexColumnsWith(colIndex);
        Console.WriteLine("Data Frame:");
        Console.WriteLine(dataFrame);
    }
}
Imports System
Imports Deedle

Friend Class Program
	Shared Sub Main()
		' Creating a series with integer keys and double values
		Dim series As New Series(Of Integer, Double)( { 1, 2, 3 }, { 3.5, 4.2, 5.1 })
		Console.WriteLine("Series:")
		Console.WriteLine(series)

		' Creating a data frame from a 2D array
		Dim rowIndex = { 1, 2, 3 }
		Dim colIndex = { "A", "B" }
		Dim data = New Double(, ) {
			{ 1.0, 3.5 },
			{ 2.0, 4.2 },
			{ 3.0, 5.1 }
		}
		Dim dataFrame = Frame.FromArray2D(data).IndexRowsWith(rowIndex).IndexColumnsWith(colIndex)
		Console.WriteLine("Data Frame:")
		Console.WriteLine(dataFrame)
	End Sub
End Class
$vbLabelText   $csharpLabel

W tym przykładzie tworzysz serię z kluczami wierszy będącymi liczbami całkowitymi i wartościami typu double. Następnie tworzysz ramkę danych przy użyciu dwuwymiarowej tablicy wartości double. Indeksujesz wiersze liczbami całkowitymi, a kolumny — ciągami znaków.

Implementacja funkcji Deedle w C

Obsługa brakujących wartości

Obsługa brakujących wartości jest kluczowa w manipulacji danymi. Deedle zapewnia solidne wsparcie dla brakujących danych. Możesz tworzyć serie z brakującymi wartościami i wykonywać operacje w celu ich obsługi.

using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Creating a series with nullable doubles to represent missing values
        var series = new Series<int, double?>(
            new[] { 75, 8, 47, 5 },
            new double?[] { 75.0, null, 47.0, 5.0 }
        );
        Console.WriteLine("Original Series with Missing Values:");
        Console.WriteLine(series);

        // Fill missing values with a specified value (e.g., 0.0)
        var filledSeries = series.FillMissing(0.0);
        Console.WriteLine("Series after Filling Missing Values:");
        Console.WriteLine(filledSeries);
    }
}
using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Creating a series with nullable doubles to represent missing values
        var series = new Series<int, double?>(
            new[] { 75, 8, 47, 5 },
            new double?[] { 75.0, null, 47.0, 5.0 }
        );
        Console.WriteLine("Original Series with Missing Values:");
        Console.WriteLine(series);

        // Fill missing values with a specified value (e.g., 0.0)
        var filledSeries = series.FillMissing(0.0);
        Console.WriteLine("Series after Filling Missing Values:");
        Console.WriteLine(filledSeries);
    }
}
Imports System
Imports Deedle

Friend Class Program
	Shared Sub Main()
		' Creating a series with nullable doubles to represent missing values
		Dim series As New Series(Of Integer, Double?)( { 75, 8, 47, 5 }, New Double?() { 75.0, Nothing, 47.0, 5.0 })
		Console.WriteLine("Original Series with Missing Values:")
		Console.WriteLine(series)

		' Fill missing values with a specified value (e.g., 0.0)
		Dim filledSeries = series.FillMissing(0.0)
		Console.WriteLine("Series after Filling Missing Values:")
		Console.WriteLine(filledSeries)
	End Sub
End Class
$vbLabelText   $csharpLabel

Ten przykład tworzy serię z brakującymi wartościami i wypełnia je określoną wartością. Do bardziej złożonych scenariuszy można również używać statycznych metod składowych, takich jak ofOptionalObservations i ofValues.

Manipulacja danymi

Deedle umożliwia wykonywanie różnych zadań związanych z manipulacją danymi. Możesz filtrować, przekształcać i agregować dane w ramkach danych.

using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Creating a data frame
        var rowIndex = new[] { 1, 2, 3 };
        var colIndex = new[] { "A", "B" };
        var data = new double[,] { { 1.0, 3.5 }, { 2.0, 4.2 }, { 3.0, 5.1 } };
        var dataFrame = Frame.FromArray2D(data)
                             .IndexRowsWith(rowIndex)
                             .IndexColumnsWith(colIndex);
        Console.WriteLine("Original Data Frame:");
        Console.WriteLine(dataFrame);

        // Filter rows where column 'A' is greater than 1.5
        var filteredFrame = dataFrame.Where(row => row.Value.GetAs<double>("A") > 1.5);
        Console.WriteLine("Filtered Data Frame:");
        Console.WriteLine(filteredFrame);

        // Add a new column 'C' which is the sum of columns 'A' and 'B'
        dataFrame.AddColumn("C", dataFrame["A"] + dataFrame["B"]);
        Console.WriteLine("Transformed Data Frame with New Column 'C':");
        Console.WriteLine(dataFrame);
    }
}
using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Creating a data frame
        var rowIndex = new[] { 1, 2, 3 };
        var colIndex = new[] { "A", "B" };
        var data = new double[,] { { 1.0, 3.5 }, { 2.0, 4.2 }, { 3.0, 5.1 } };
        var dataFrame = Frame.FromArray2D(data)
                             .IndexRowsWith(rowIndex)
                             .IndexColumnsWith(colIndex);
        Console.WriteLine("Original Data Frame:");
        Console.WriteLine(dataFrame);

        // Filter rows where column 'A' is greater than 1.5
        var filteredFrame = dataFrame.Where(row => row.Value.GetAs<double>("A") > 1.5);
        Console.WriteLine("Filtered Data Frame:");
        Console.WriteLine(filteredFrame);

        // Add a new column 'C' which is the sum of columns 'A' and 'B'
        dataFrame.AddColumn("C", dataFrame["A"] + dataFrame["B"]);
        Console.WriteLine("Transformed Data Frame with New Column 'C':");
        Console.WriteLine(dataFrame);
    }
}
Imports System
Imports Deedle

Friend Class Program
	Shared Sub Main()
		' Creating a data frame
		Dim rowIndex = { 1, 2, 3 }
		Dim colIndex = { "A", "B" }
		Dim data = New Double(, ) {
			{ 1.0, 3.5 },
			{ 2.0, 4.2 },
			{ 3.0, 5.1 }
		}
		Dim dataFrame = Frame.FromArray2D(data).IndexRowsWith(rowIndex).IndexColumnsWith(colIndex)
		Console.WriteLine("Original Data Frame:")
		Console.WriteLine(dataFrame)

		' Filter rows where column 'A' is greater than 1.5
		Dim filteredFrame = dataFrame.Where(Function(row) row.Value.GetAs(Of Double)("A") > 1.5)
		Console.WriteLine("Filtered Data Frame:")
		Console.WriteLine(filteredFrame)

		' Add a new column 'C' which is the sum of columns 'A' and 'B'
		dataFrame.AddColumn("C", dataFrame("A") + dataFrame("B"))
		Console.WriteLine("Transformed Data Frame with New Column 'C':")
		Console.WriteLine(dataFrame)
	End Sub
End Class
$vbLabelText   $csharpLabel

Ten przykład demonstruje filtrowanie wierszy na podstawie warunku i dodawanie nowej kolumny z przekształconymi danymi. Deedle implementuje standardowe metody rozszerzeń ramek, dzięki czemu analiza danych jest prosta.

Funkcje statystyczne

Deedle udostępnia standardowe funkcje statystyczne do analizy danych. Korzystając z funkcji statystycznych, można obliczyć średnią, odchylenie standardowe i inne miary statystyczne.

using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Creating a series with integer keys and double values
        var series = new Series<int, double>(
            new[] { 1, 2, 3, 4 },
            new[] { 1.0, 2.0, 3.0, 4.0 }
        );
        Console.WriteLine("Series:");
        Console.WriteLine(series);

        // Calculate the mean of the series
        var mean = series.Mean();
        Console.WriteLine($"Mean: {mean}");

        // Calculate the standard deviation of the series
        var stddev = series.StdDev();
        Console.WriteLine($"Standard Deviation: {stddev}");
    }
}
using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Creating a series with integer keys and double values
        var series = new Series<int, double>(
            new[] { 1, 2, 3, 4 },
            new[] { 1.0, 2.0, 3.0, 4.0 }
        );
        Console.WriteLine("Series:");
        Console.WriteLine(series);

        // Calculate the mean of the series
        var mean = series.Mean();
        Console.WriteLine($"Mean: {mean}");

        // Calculate the standard deviation of the series
        var stddev = series.StdDev();
        Console.WriteLine($"Standard Deviation: {stddev}");
    }
}
Imports System
Imports Deedle

Friend Class Program
	Shared Sub Main()
		' Creating a series with integer keys and double values
		Dim series As New Series(Of Integer, Double)( { 1, 2, 3, 4 }, { 1.0, 2.0, 3.0, 4.0 })
		Console.WriteLine("Series:")
		Console.WriteLine(series)

		' Calculate the mean of the series
		Dim mean = series.Mean()
		Console.WriteLine($"Mean: {mean}")

		' Calculate the standard deviation of the series
		Dim stddev = series.StdDev()
		Console.WriteLine($"Standard Deviation: {stddev}")
	End Sub
End Class
$vbLabelText   $csharpLabel

Ten przykład kodu Deedle implementuje standardowe funkcje statystyczne Mean() i StdDev() do obliczania odpowiednio średniej i odchylenia standardowego serii.

Tworzenie ram danych z plików CSV

Deedle pozwala w łatwy sposób tworzyć ramki danych z plików CSV. Jest to pomocne przy ładowaniu i analizowaniu danych strukturalnych.

using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Load a data frame from a CSV file
        var dataFrame = Frame.ReadCsv("data.csv");
        Console.WriteLine("Data Frame from CSV:");
        Console.WriteLine(dataFrame);

        // Aggregate rows by a specified column and compute sum
        var summary = dataFrame.AggregateRowsBy<string, double>(
            new[] { "ColumnName" }, // rowKeys
            null, // columnKeys, you can pass null if not required
            v => v.Sum() // aggFunc
        );
        Console.WriteLine("Summary of Data Frame:");
        Console.WriteLine(summary);
    }
}
using System;
using Deedle;

class Program
{
    static void Main()
    {
        // Load a data frame from a CSV file
        var dataFrame = Frame.ReadCsv("data.csv");
        Console.WriteLine("Data Frame from CSV:");
        Console.WriteLine(dataFrame);

        // Aggregate rows by a specified column and compute sum
        var summary = dataFrame.AggregateRowsBy<string, double>(
            new[] { "ColumnName" }, // rowKeys
            null, // columnKeys, you can pass null if not required
            v => v.Sum() // aggFunc
        );
        Console.WriteLine("Summary of Data Frame:");
        Console.WriteLine(summary);
    }
}
Imports System
Imports Deedle

Friend Class Program
	Shared Sub Main()
		' Load a data frame from a CSV file
		Dim dataFrame = Frame.ReadCsv("data.csv")
		Console.WriteLine("Data Frame from CSV:")
		Console.WriteLine(dataFrame)

		' Aggregate rows by a specified column and compute sum
		Dim summary = dataFrame.AggregateRowsBy(Of String, Double)( { "ColumnName" }, Nothing, Function(v) v.Sum())
		Console.WriteLine("Summary of Data Frame:")
		Console.WriteLine(summary)
	End Sub
End Class
$vbLabelText   $csharpLabel

W tym przykładzie plik CSV jest wczytywany do ramki danych, a następnie wykonywana jest operacja podsumowująca na danych.

Integracja Deedle z IronPDF

Wprowadzenie do IronPDF

Deedle C# (Jak to działa dla programistów): Rysunek 1 — IronPDF dla .NET: biblioteka C# do obsługi plików PDF

IronPDF to potężna biblioteka, która pozwala tworzyć, modyfikować i wyodrębniać zawartość z plików PDF w aplikacjach .NET. Jest bardzo wszechstronny i może obsługiwać różne zadania związane z plikami PDF, takie jak generowanie plików PDF z HTML, wyodrębnianie tekstu, scalanie plików PDF i wiele więcej. Integracja IronPDF z Deedle może być szczególnie przydatna w scenariuszach analizy danych i raportowania, w których konieczne jest generowanie dynamicznych raportów na podstawie ram danych.

Instalacja IronPDF

Aby zainstalować IronPDF w projekcie .NET za pomocą konsoli NuGet Package Manager Console, dodaj następujące polecenie:

Install-Package IronPdf

Można również zainstalować IronPDF za pomocą menedżera pakietów NuGet dla rozwiązań. W wynikach wyszukiwania na NuGet znajdź pakiet IronPDF, wybierz go, a następnie kliknij przycisk „Zainstaluj". Visual Studio automatycznie pobierze i zainstaluje pakiet.

Po zakończeniu instalacji można wykorzystać IronPDF w swoim projekcie.

Przykład zastosowania połączenia IronPDF z Deedle

Wyobraź sobie, że masz ramkę danych zawierającą pewne dane statystyczne, które chcesz przedstawić w raporcie PDF. Deedle może zająć się częścią dotyczącą manipulacji danymi i analizy, natomiast IronPDF może posłużyć do formatowania i generowania końcowego raportu. Na przykład można wygenerować plik PDF zawierający tabele, wykresy i statystyki opisowe, co ułatwia udostępnianie i prezentowanie danych.

Przykładowy kod przedstawiający przypadek użycia

Oto kompletny przykład kodu pokazujący, jak zintegrować Deedle z IronPDF. Stworzymy prosty raport na podstawie ramki danych Deedle i wygenerujemy plik PDF przy użyciu IronPDF.

using System;
using System.Linq;
using Deedle;
using IronPdf;

namespace DeedleIronPDFIntegration
{
    class Program
    {
        static void Main(string[] args)
        {
            // Set IronPDF license key
            IronPdf.License.LicenseKey = "License-Key";

            // Create a sample data frame from in-memory records
            var data = new[]
            {
                new { Name = "Robert", Age = 30, City = "New York" },
                new { Name = "Johnny", Age = 25, City = "San Francisco" },
                new { Name = "Charlie", Age = 35, City = "Los Angeles" }
            };
            var frame = Frame.FromRecords(data);

            // Convert the data frame to an HTML table format
            var htmlTable = "<table border='1' cellpadding='5' cellspacing='0'><thead><tr><th>Name</th><th>Age</th><th>City</th></tr></thead><tbody>" +
                            string.Join("", frame.Rows.Select(row =>
                                $"<tr><td>{row.Value.GetAs<string>("Name")}</td><td>{row.Value.GetAs<int>("Age")}</td><td>{row.Value.GetAs<string>("City")}</td></tr>")
                            ) +
                            "</tbody></table>";

            // Wrap the HTML table in basic HTML structure with CSS styling
            var htmlContent = $@"
            <html>
            <head>
                <style>
                    table {{
                        width: 100%;
                        border-collapse: collapse;
                    }}
                    th, td {{
                        border: 1px solid black;
                        padding: 8px;
                        text-align: left;
                    }}
                    th {{
                        background-color: #f2f2f2;
                    }}
                </style>
            </head>
            <body>
                {htmlTable}
            </body>
            </html>";

            // Create a PDF from the HTML content
            var renderer = new ChromePdfRenderer();
            var pdfDocument = renderer.RenderHtmlAsPdf(htmlContent);

            // Save the generated PDF to a file
            pdfDocument.SaveAs("f:\\DeedleReport.pdf");
            Console.WriteLine("PDF report created successfully!");
        }
    }
}
using System;
using System.Linq;
using Deedle;
using IronPdf;

namespace DeedleIronPDFIntegration
{
    class Program
    {
        static void Main(string[] args)
        {
            // Set IronPDF license key
            IronPdf.License.LicenseKey = "License-Key";

            // Create a sample data frame from in-memory records
            var data = new[]
            {
                new { Name = "Robert", Age = 30, City = "New York" },
                new { Name = "Johnny", Age = 25, City = "San Francisco" },
                new { Name = "Charlie", Age = 35, City = "Los Angeles" }
            };
            var frame = Frame.FromRecords(data);

            // Convert the data frame to an HTML table format
            var htmlTable = "<table border='1' cellpadding='5' cellspacing='0'><thead><tr><th>Name</th><th>Age</th><th>City</th></tr></thead><tbody>" +
                            string.Join("", frame.Rows.Select(row =>
                                $"<tr><td>{row.Value.GetAs<string>("Name")}</td><td>{row.Value.GetAs<int>("Age")}</td><td>{row.Value.GetAs<string>("City")}</td></tr>")
                            ) +
                            "</tbody></table>";

            // Wrap the HTML table in basic HTML structure with CSS styling
            var htmlContent = $@"
            <html>
            <head>
                <style>
                    table {{
                        width: 100%;
                        border-collapse: collapse;
                    }}
                    th, td {{
                        border: 1px solid black;
                        padding: 8px;
                        text-align: left;
                    }}
                    th {{
                        background-color: #f2f2f2;
                    }}
                </style>
            </head>
            <body>
                {htmlTable}
            </body>
            </html>";

            // Create a PDF from the HTML content
            var renderer = new ChromePdfRenderer();
            var pdfDocument = renderer.RenderHtmlAsPdf(htmlContent);

            // Save the generated PDF to a file
            pdfDocument.SaveAs("f:\\DeedleReport.pdf");
            Console.WriteLine("PDF report created successfully!");
        }
    }
}
Imports System
Imports System.Linq
Imports Deedle
Imports IronPdf

Namespace DeedleIronPDFIntegration
	Friend Class Program
		Shared Sub Main(ByVal args() As String)
			' Set IronPDF license key
			IronPdf.License.LicenseKey = "License-Key"

			' Create a sample data frame from in-memory records
			Dim data = {
				New With {
					Key .Name = "Robert",
					Key .Age = 30,
					Key .City = "New York"
				},
				New With {
					Key .Name = "Johnny",
					Key .Age = 25,
					Key .City = "San Francisco"
				},
				New With {
					Key .Name = "Charlie",
					Key .Age = 35,
					Key .City = "Los Angeles"
				}
			}
			Dim frame = Frame.FromRecords(data)

			' Convert the data frame to an HTML table format
			Dim htmlTable = "<table border='1' cellpadding='5' cellspacing='0'><thead><tr><th>Name</th><th>Age</th><th>City</th></tr></thead><tbody>" & String.Join("", frame.Rows.Select(Function(row) $"<tr><td>{row.Value.GetAs(Of String)("Name")}</td><td>{row.Value.GetAs(Of Integer)("Age")}</td><td>{row.Value.GetAs(Of String)("City")}</td></tr>")) & "</tbody></table>"

			' Wrap the HTML table in basic HTML structure with CSS styling
			Dim htmlContent = $"
            <html>
            <head>
                <style>
                    table {{
                        width: 100%;
                        border-collapse: collapse;
                    }}
                    th, td {{
                        border: 1px solid black;
                        padding: 8px;
                        text-align: left;
                    }}
                    th {{
                        background-color: #f2f2f2;
                    }}
                </style>
            </head>
            <body>
                {htmlTable}
            </body>
            </html>"

			' Create a PDF from the HTML content
			Dim renderer = New ChromePdfRenderer()
			Dim pdfDocument = renderer.RenderHtmlAsPdf(htmlContent)

			' Save the generated PDF to a file
			pdfDocument.SaveAs("f:\DeedleReport.pdf")
			Console.WriteLine("PDF report created successfully!")
		End Sub
	End Class
End Namespace
$vbLabelText   $csharpLabel

Wynik

Deedle C# (Jak to działa dla programistów): Rysunek 2 — Wygenerowany plik PDF przy użyciu IronPDF i Deedle

Właśnie stworzyłeś w pełni funkcjonalną aplikację, która pobiera złożone dane z Deedle i przekształca je w sformatowany raport PDF przy użyciu biblioteki .NET PDF firmy IronPDF. To skuteczny sposób na przekazanie wyników analizy danych w profesjonalnym formacie.

Wnioski

W tym artykule omówiliśmy, jak zintegrować Deedle z IronPDF w celu tworzenia dynamicznych raportów PDF na podstawie ram danych. Korzystając z Deedle, można efektywnie przetwarzać i analizować dane, podczas gdy IronPDF zajmuje się tworzeniem i formatowaniem końcowego dokumentu PDF. To połączenie pozwala z łatwością generować profesjonalne raporty, automatyzując proces od analizy danych po prezentację.

IronPDF oferuje szczegółową dokumentację dotyczącą funkcji i użytkowania wraz z różnymi przykładami kodu IronPDF, które pomogą Ci rozpocząć pracę i efektywnie korzystać z jego rozbudowanych funkcji.

Explore IronPDF licensing options starting from $999. Wypróbuj to i przekonaj się, jak może to poprawić Twoje możliwości raportowania.

Często Zadawane Pytania

Do czego służy Deedle C#?

Deedle C# służy do manipulacji i analizy danych, oferując narzędzia do efektywnego zarządzania zorganizowanymi ramkami i seriami danych. Jest szczególnie przydatny w aplikacjach data science ze względu na zdolność do zarządzania brakującymi danymi, wyrównywania danych i stosowania funkcji.

Jak mogę zintegrować Deedle z generowaniem PDF w .NET?

Można zintegrować Deedle z IronPDF, aby generować dynamiczne raporty PDF z ramek danych. Deedle obsługuje manipulację danymi, podczas gdy IronPDF formatuje i generuje końcowy raport PDF zawierający tabele, wykresy i statystyki.

Jak zainstalować Deedle w projekcie .NET?

Aby zainstalować Deedle w projekcie .NET, można użyć Visual Studio do stworzenia nowej aplikacji konsolowej C#, a następnie zainstalować pakiet NuGet Deedle za pomocą komendy Install-Package Deedle i dołączyć go do projektu za pomocą using Deedle;.

Jaki jest proces tworzenia ramek danych z plików CSV za pomocą Deedle?

Aby tworzyć ramki danych z plików CSV używając Deedle, można użyć metody Frame.ReadCsv(). Umożliwia to wczytywanie zorganizowanych danych z plików CSV do ramek danych do analizy i manipulacji.

Czy Deedle może obsługiwać brakujące wartości w ramkach danych?

Tak, Deedle zapewnia solidne wsparcie w zakresie obsługi brakujących wartości w ramkach danych. Można używać funkcji takich jak FillMissing(), aby właściwie zarządzać i uzupełniać brakujące dane w serii lub ramce danych.

Jak mogę przeprowadzić analizę statystyczną za pomocą Deedle?

Deedle oferuje wbudowane funkcje statystyczne, które pozwalają na przeprowadzanie analizy danych, w tym obliczenia średniej, odchylenia standardowego i innych metryk statystycznych bezpośrednio na ramkach danych i seriach.

Jak generować raporty PDF z ramek danych w .NET?

Aby generować raporty PDF z ramek danych w .NET, można użyć Deedle do manipulacji danymi oraz IronPDF do generowania PDF. Po przetworzeniu danych za pomocą Deedle, należy użyć IronPDF do formatowania i wyprowadzania danych w profesjonalnie stylizowanym raporcie PDF.

Jacob Mellor, Dyrektor Technologiczny @ Team Iron
Dyrektor ds. technologii

Jacob Mellor jest Chief Technology Officer w Iron Software i wizjonerskim inżynierem, pionierem technologii C# PDF. Jako pierwotny deweloper głównej bazy kodowej Iron Software, kształtuje architekturę produktów firmy od jej początku, przekształcając ją wspólnie z CEO Cameron Rimington w firmę liczą...

Czytaj więcej

Zespol wsparcia Iron

Jestesmy online 24 godziny, 5 dni w tygodniu.
Czat
E-mail
Zadzwon do mnie