Skip to content

Array.reindex fails if adding labels of different type #909

@gdementen

Description

@gdementen
>>> arr = ndtest("year=2020..2022")
>>> arr.reindex("year", [2020, 2022])
year  2020  2022
       0.0   2.0
>>> arr.reindex("year", [2020, "a", 2022, "b"])
ValueError: incompatible axes:
Axis([], 'year')
vs
Axis([], 'year')

Bonus point for the totally cryptic error message 😉

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions