mars icon indicating copy to clipboard operation
mars copied to clipboard

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

Open ericpai opened this issue 2 years ago • 0 comments

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)

ericpai avatar Aug 07 '23 04:08 ericpai