Skip to content

Commit 0126dc4

Browse files
author
Brian Hulette
committed
Don't recompute total length
1 parent e761eee commit 0126dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/table.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class Table implements DataFrame {
115115
}
116116
}
117117
count(): number {
118-
return this.lengths.reduce((acc, val) => acc + val);
118+
return this.length;
119119
}
120120
countBy(count_by: (Col|string)): CountByResult {
121121
if (!(count_by instanceof Col)) {

0 commit comments

Comments
 (0)