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

[BUG] Series with multi index accessing data by index error #3357

Open
ericpai opened this issue Aug 7, 2023 · 0 comments
Open

[BUG] Series with multi index accessing data by index error #3357

ericpai opened this issue Aug 7, 2023 · 0 comments

Comments

@ericpai
Copy link
Contributor

ericpai commented Aug 7, 2023

Describe the bug
Series with multi index accessing data by index error, but pandas works well.

To Reproduce

import pandas as pd
arrays = [["m1", "m2", "m3"], ["n1", "n2", "n3"]]
idx = pd.MultiIndex.from_arrays(arrays, names=("idx_1", "idx_2"))
s = md.Series([1, 2, 3], index=multi_index)
s[("m1", "n1")]

>>> NotImplementedError: type <class 'tuple'> is not support for getitem

Expected behavior

>>> (No error happens)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant