TokenVector.Data 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TokenVector.Data --version 1.0.0
                    
NuGet\Install-Package TokenVector.Data -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TokenVector.Data" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TokenVector.Data" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="TokenVector.Data" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TokenVector.Data --version 1.0.0
                    
#r "nuget: TokenVector.Data, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TokenVector.Data@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TokenVector.Data&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=TokenVector.Data&version=1.0.0
                    
Install as a Cake Tool

TokenVector.Data

🇬🇧 English | 🇻🇳 Tiếng Việt

.NET 8 C# 12 License: MIT Tests

TokenVector.Data.dll is an ultra-high-performance columnar DataFrame and tabular data processing library written in C# 12 / .NET 8 LTS specifically engineered for the TokenVector native programming language ecosystem and .NET CIL AOT.

The library implements Apache Arrow-aligned contiguous memory layouts, true No-GIL CPU parallelization, 64-bit Bitboard null masks (BitmapMask), SIMD hardware acceleration, high-frequency financial AsOfJoin, multi-threaded CSV/JSON parsing, Feather/Arrow IPC streaming, and zero-copy bridges to TokenVector.Numerics.NDArray<T> and TokenVector.Numerics.Autograd.Tensor<T>.


📋 Architectural Highlights

Feature TokenVector.Data (.NET 8 / C# 12)
Columnar Memory Storage Contiguous unmanaged buffers (Column<T>), Arrow-aligned UTF-8 variable-length buffer + offset array (StringColumn)
Null Representation 64-bit Bitboard BitmapMask utilizing hardware POPCNT and SIMD bitwise logic
No-GIL Multithreading Parallel execution across 100% CPU cores via Parallel.For and TPL in GroupBy, Hash Join, CSV Parsing, and Filtering
Hardware Acceleration Vectorized SIMD kernels (AVX2, SSE4, FMA) for arithmetic, window functions, and statistics
Relational Operations Multi-key Parallel Radix Hash Join (Inner, Left, Right, FullOuter, Cross) and high-frequency financial AsOfJoin
Tabular Reshaping Pivot (long-to-wide), Melt (wide-to-long), ConcatVertical, ConcatHorizontal
Streaming & I/O Multi-threaded CSV parser with schema inference, streaming NDJSON reader, and Apache Arrow IPC Feather streaming
Out-Of-Core Processing Memory-mapped DataFrame (OutOfCoreDataFrame) for querying datasets larger than physical RAM
Zero-Copy Tensor Bridge Instant, zero-copy conversion between DataFrame/Series and TokenVector.Numerics NDArray<T> / Tensor<T>

🧪 Verification & Quality Assurance

All 51/51 unit tests pass with 100% green status in Release mode:

dotnet test TokenVector.Data.sln -c Release
Passed!  - Failed: 0, Passed: 51, Skipped: 0, Total: 51, Duration: 47 ms - TokenVector.Data.Tests.dll (net8.0)

🚀 Quick Start (C#)

using TokenVector.Data.Common;
using TokenVector.Data.Core;
using TokenVector.Data.Compute;
using TokenVector.Data.Relational;
using TokenVector.Data.Interop;

// 1. Create a DataFrame
var df = new DataFrame(
    Series.FromValues("user_id", new[] { 1, 2, 3, 4, 5 }),
    Series.FromStrings("dept", new[] { "IT", "HR", "IT", "Sales", "HR" }),
    Series.FromValues("salary", new[] { 75000.0, 52000.0, 88000.0, 61000.0, 58000.0 })
);

// 2. Parallel GroupBy & Aggregation
var summary = df.GroupBy("dept").Agg(
    Agg.Count("salary", "headcount"),
    Agg.Mean("salary", "avg_salary"),
    Agg.Max("salary", "max_salary")
);

// 3. High-Frequency AsOf Join
var matched = trades.AsOfJoin(quotes, leftOn: "timestamp", rightOn: "timestamp", direction: AsOfDirection.Backward);

// 4. Zero-Copy bridge to TokenVector.Numerics NDArray
var numericMatrix = df.ToNDArray<double>(new[] { "user_id", "salary" });

💻 Quick Start (TokenVector Native Language)

import tv.data as td
from tv.data import Agg

# Read CSV and perform grouped analytics
df = td.read_csv("employees.csv")
report = df.groupby("department").agg(
    Agg.mean("salary", out_name="avg_salary"),
    Agg.count("id", out_name="headcount")
)
print(report)

For complete documentation, see User Guide (English) and Hướng dẫn sử dụng (Tiếng Việt).

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.10 108 9/25/2026
1.0.9 106 9/23/2026
1.0.8-dev 92 9/23/2026
1.0.2 115 9/19/2026
1.0.1 104 9/18/2026
1.0.0 120 9/13/2026