Skip to content

bug: merge fails when merging on column which contains values containing underscores #168

Closed
@jpjagt

Description

@jpjagt

Describe the bug
danfojs-browser/src/core/merge.js stores sets of values by joining them with an underscore, and later splitting on underscore. however, when the values themselves contain underscores, this becomes problematic, as this split causes nonsensical columns to be defined when indexing the data.

To Reproduce
Steps to reproduce the behavior:

  1. create two dataframes, both with the same column consisting of values which contain underscores.
  2. attempt to dfd.merge those dataframes.
  3. get an error: Column length mismatch. You provided a column of length 1 but data has length of 3 (e.g.)

Expected behavior
the two dataframes should be merged without any trouble.

Desktop (please complete the following information):

  • OS: macOS, but any OS
  • Browser any browser
  • Version 0.2.5

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions