Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array.reindex fails when not specifying new axis name in dict #1120

Open
gdementen opened this issue Oct 24, 2024 · 0 comments
Open

Array.reindex fails when not specifying new axis name in dict #1120

gdementen opened this issue Oct 24, 2024 · 0 comments

Comments

@gdementen
Copy link
Contributor

gdementen commented Oct 24, 2024

>>> arr = ndtest(3)
>>> arr.reindex({'a': 'a1,a2,a3'})
[...]
KeyError: "axis 'a' not found in {{0}}"
>>> arr.reindex('a', 'a1,a2,a3')
a   a1   a2   a3
   1.0  2.0  nan
>>> arr.reindex({'a': 'a=a1,a2,a3'})
a   a1   a2   a3
   1.0  2.0  nan
>>> arr.reindex({'a': Axis('a=a1,a2,a3')})
a   a1   a2   a3
   1.0  2.0  nan

vs stumbled on this one

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

No branches or pull requests

1 participant