Skip to content

Commit c6462da

Browse files
Fix TS2322: use Dtype.float64 instead of string literal in hash_pandas_object
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a0a5df2 commit c6462da

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/stats/hash_pandas_object.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import type { Scalar } from "../types.ts";
3232
import { DataFrame } from "../core/frame.ts";
3333
import { Series } from "../core/series.ts";
34+
import { Dtype } from "../core/dtype.ts";
3435

3536
// ─── FNV-1a 64-bit constants ──────────────────────────────────────────────────
3637

@@ -183,7 +184,7 @@ function _hashSeries(s: Series, includeIndex: boolean): Series<number> {
183184
hashes.push(Number(h));
184185
}
185186

186-
return new Series<number>({ data: hashes, index: s.index, dtype: "float64" });
187+
return new Series<number>({ data: hashes, index: s.index, dtype: Dtype.float64 });
187188
}
188189

189190
function _hashDataFrame(df: DataFrame, includeIndex: boolean): Series<number> {
@@ -205,5 +206,5 @@ function _hashDataFrame(df: DataFrame, includeIndex: boolean): Series<number> {
205206
hashes.push(Number(h));
206207
}
207208

208-
return new Series<number>({ data: hashes, index: df.index, dtype: "float64" });
209+
return new Series<number>({ data: hashes, index: df.index, dtype: Dtype.float64 });
209210
}

0 commit comments

Comments
 (0)