Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

[BUG] DataFrameLoc did not support item assignment #110

Open
hoarjour opened this issue Dec 20, 2022 · 0 comments
Open

[BUG] DataFrameLoc did not support item assignment #110

hoarjour opened this issue Dec 20, 2022 · 0 comments

Comments

@hoarjour
Copy link

Describe the bug

s = md.Series([1, 2, 3])
s.loc[0] = 111
s.execute()
Traceback (most recent call last):
  File "/Users/huanghaojie/Documents/git_repo/mars/mars/services/subtask/worker/tests/collect.py", line 15, in <module>
    s.loc[0] = 111
TypeError: 'DataFrameLoc' object does not support item assignment
df = md.DataFrame([[4, 9]] * 3, columns=['A', 'B'])
df.loc[0] = [100, 200]
df.execute()
Traceback (most recent call last):
  File "/Users/huanghaojie/Documents/git_repo/mars/mars/services/subtask/worker/tests/collect.py", line 18, in <module>
    df.loc[0] = [100, 200]
TypeError: 'DataFrameLoc' object does not support item assignment

at and iat also did not support item assignment

To Reproduce

To help us reproducing this bug, please provide information below:

  1. Your Python version: 3.10.6
  2. The version of Mars you use: latest
  3. Versions of crucial packages, such as numpy, scipy and pandas: follow mars
  4. Full stack of the error.
  5. Minimized code to reproduce the error.

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant