FilePrepper 0.2.2
See the version list below for details.
dotnet add package FilePrepper --version 0.2.2
NuGet\Install-Package FilePrepper -Version 0.2.2
<PackageReference Include="FilePrepper" Version="0.2.2" />
<PackageVersion Include="FilePrepper" Version="0.2.2" />
<PackageReference Include="FilePrepper" />
paket add FilePrepper --version 0.2.2
#r "nuget: FilePrepper, 0.2.2"
#:package FilePrepper@0.2.2
#addin nuget:?package=FilePrepper&version=0.2.2
#tool nuget:?package=FilePrepper&version=0.2.2
FilePrepper
FilePrepper is a powerful C# library for processing and transforming CSV files. It provides a wide range of data manipulation tasks through a flexible and extensible architecture.
Features
Data Manipulation
- Add Columns: Add new columns with specified values
- Remove Columns: Remove specified columns from the dataset
- Rename Columns: Rename columns with a mapping dictionary
- Reorder Columns: Change the order of columns in the output
- Column Interaction: Perform operations between columns (add, subtract, multiply, divide, concatenate)
Data Transformation
- Data Type Convert: Convert column data types (string, integer, decimal, datetime, boolean)
- Date Extraction: Extract components from date columns (year, month, day, etc.)
- Fill Missing Values: Handle missing values with various methods (mean, median, mode, forward fill, etc.)
- Normalize Data: Normalize numeric columns using Min-Max or Z-score methods
- One Hot Encoding: Convert categorical variables into binary columns
- Scale Data: Scale numeric columns using Min-Max or Standardization methods
- Value Replace: Replace specific values in columns with new values
Data Analysis
- Aggregate: Perform grouping and aggregation operations (sum, average, count, min, max)
- Basic Statistics: Calculate various statistics (mean, standard deviation, percentiles, etc.)
Data Organization
- Drop Duplicates: Remove duplicate rows based on specified columns
- Filter Rows: Filter data based on various conditions
- Merge: Combine multiple CSV files (vertical/horizontal merge with different join types)
- Data Sampling: Sample data using different methods (random, systematic, stratified)
File Format Support
- File Format Convert: Convert between different file formats (CSV, TSV, PSV, JSON, XML)
Usage
Each task in FilePrepper follows a consistent pattern:
- Configure the task options
- Create a task instance
- Execute the task with a context
Here's a basic example:
// Configure options
var options = new AddColumnsOption
{
NewColumns = new Dictionary<string, string>
{
{ "NewColumn", "DefaultValue" }
}
};
// Create task
var logger = LoggerFactory.Create(builder => builder.AddConsole())
.CreateLogger<AddColumnsTask>();
var task = new AddColumnsTask(logger);
// Execute
var context = new TaskContext(options)
{
InputPath = "input.csv",
OutputPath = "output.csv"
};
await task.ExecuteAsync(context);
Error Handling
FilePrepper provides flexible error handling through common options:
var options = new AddColumnsOption
{
Common = new CommonTaskOptions
{
ErrorHandling = new ErrorHandlingOptions
{
IgnoreErrors = true,
DefaultValue = "0"
}
}
};
Installation
Add the FilePrepper package to your project:
dotnet add package FilePrepper
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- CsvHelper (>= 33.0.1)
- EPPlus (>= 7.5.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Scrutor (>= 5.1.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on FilePrepper:
| Package | Downloads |
|---|---|
|
DataLens
Exploratory data analysis engine for CSV/Excel datasets. Produces JSON analysis results including profiling, descriptive statistics, correlation, regression, clustering, outlier detection, PCA, and feature importance. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.0 | 124 | 4/27/2026 |
| 0.6.2 | 127 | 4/27/2026 |
| 0.6.1 | 89 | 4/27/2026 |
| 0.6.0 | 250 | 3/20/2026 |
| 0.5.0 | 164 | 2/21/2026 |
| 0.4.9 | 252 | 1/10/2026 |
| 0.4.8 | 184 | 11/16/2025 |
| 0.4.7 | 291 | 11/14/2025 |
| 0.4.5 | 331 | 11/13/2025 |
| 0.4.3 | 306 | 11/10/2025 |
| 0.4.0 | 231 | 11/3/2025 |
| 0.2.3 | 236 | 11/3/2025 |
| 0.2.2 | 193 | 1/17/2025 |
| 0.2.1 | 167 | 1/16/2025 |
| 0.2.0 | 201 | 1/11/2025 |
| 0.1.1 | 202 | 12/16/2024 |
| 0.1.0 | 199 | 12/6/2024 |