mars-project / mars-project/mars

[BUG] Support creating mars Series using dict with mars tensor as values

Open
#2,029 0 comments 0 reactions 0 assignees View on GitHub
mod: dataframe pr welcome task: medium type: bug
Dominant language
Python
Stars
2.7k
Forks
325
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The Series executing result is not expected when passing dict as below:
``` Python

In [23]: r = mt.random.rand(10).sum()

In [24]: md.Series({'a':r, 'b':r}).execute()
Out[24]:
a Tensor(op=TensorSum, shape=())
b Tensor(op=TensorSum, shape=())
dtype: object

```

Contributor guide

Open the contributing guide

Research direction

Start by running the reported md.Series({'a': r, 'b': r}).execute() reproduction with a Mars tensor value, then trace the Series construction path for dictionaries. Done means the executed Series contains the computed scalar results rather than Tensor objects; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.