This commit is contained in:
Boki 2025-06-11 10:35:15 -04:00
parent d85cd58acd
commit 597c6efc9b
91 changed files with 2224 additions and 1400 deletions

View file

@ -35,7 +35,7 @@ export class DataFrame {
}
private inferColumns(): string[] {
if (this.data.length === 0) return [];
if (this.data.length === 0) {return [];}
const columns = new Set<string>();
for (const row of this.data) {
@ -46,7 +46,7 @@ export class DataFrame {
}
private validateAndCleanData(): void {
if (this.data.length === 0) return;
if (this.data.length === 0) {return;}
// Ensure all rows have the same columns
for (let i = 0; i < this.data.length; i++) {
@ -224,7 +224,7 @@ export class DataFrame {
const aVal = a[column];
const bVal = b[column];
if (aVal === bVal) return 0;
if (aVal === bVal) {return 0;}
const comparison = aVal > bVal ? 1 : -1;
return ascending ? comparison : -comparison;