Skip to content

Commit 25ac388

Browse files
committed
Fix throwColumnLengthError to take the right shape index
1 parent fd8333b commit 25ac388

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/danfojs-base/shared/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ErrorThrower {
5252
}
5353

5454
throwColumnLengthError = (ndframe: NDframe | DataFrame, arrLen: number): void => {
55-
const msg = `ParamError: Column data length mismatch. You provided data with length ${arrLen} but Ndframe has column of length ${ndframe.shape[1]}`
55+
const msg = `ParamError: Column data length mismatch. You provided data with length ${arrLen} but Ndframe has column of length ${ndframe.shape[0]}`
5656
throw new Error(msg)
5757
}
5858

0 commit comments

Comments
 (0)