mars-project / mars-project/mars
[BUG] Support creating mars Series using dict with mars tensor as values
- 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
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