Skip to content

Same headers in columns mean withColumns returns wrong column number #19

@SimonbJohnson

Description

@SimonbJohnson

withColumns function returns the wrong column number if the headers are the same in multiple columns.

Previously this dataset had a column with header Country (the same as column 1 and column 4) and it gave the wrong result until the header was changed.

rough code to test:

dataset.withColumns(['#country+code'].forEach(function(row,col,rowindex){
 console.log(col)
});

Output gave column number as 1, but was expecting 4.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions