mars-project / mars

Mars is a tensor-based unified framework for large-scale data computation which scales numpy, pandas, scikit-learn and Python functions.
https://mars-project.readthedocs.io
Apache License 2.0
2.68k stars 325 forks source link

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

Open ericpai opened 10 months ago

ericpai commented 10 months ago

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)