Skip to content

annotate_metadata_with_index raises ValueError when dtypes don't match #948

@joverlee521

Description

@joverlee521

Current Behavior
Within annotate_metadata_with_index, the index TSV is read without explicitly set dtypes. This can lead to numerical id strain values to be interpreted as numbers, leading to a ValueError when merging with the metadata.

Additional context
See error reported by user: https://discussion.nextstrain.org/t/value-error-trying-to-merge-on-object-and-int64-columns/1106

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingeasy problemRequires less work than most issues

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions