Skip to content

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

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 😉

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions