Skip to content

Commit

Permalink
Don't recompute total length
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hulette committed Jan 19, 2018
1 parent e761eee commit 0126dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class Table implements DataFrame {
}
}
count(): number {
return this.lengths.reduce((acc, val) => acc + val);
return this.length;
}
countBy(count_by: (Col|string)): CountByResult {
if (!(count_by instanceof Col)) {
Expand Down

0 comments on commit 0126dc4

Please sign in to comment.