Skip to content

allow reindex(new_axis) #712

@gdementen

Description

@gdementen
>>> arr = ndtest('time=1993..2017')
>>> arr.reindex('time=2015..2019')
TypeError: labels should be a sequence or a single int
>>> arr.reindex('time', 'time=2015..2019')
time  2015  2016  2017  2018  2019
       nan   0.0   1.0   2.0   nan
>>> arr.reindex('time', '2015..2019')
time  2015  2016  2017  2018  2019
       nan   0.0   1.0   2.0   nan

This is a bit annoying that the first version does not work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions