mars
mars copied to clipboard
[BUG] Series with multi index accessing data by index error
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)