Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: DataFrame.copy() failed #700

Closed
qinxuye opened this issue Sep 16, 2023 · 0 comments · Fixed by #709
Closed

BUG: DataFrame.copy() failed #700

qinxuye opened this issue Sep 16, 2023 · 0 comments · Fixed by #709
Labels
bug Something isn't working
Milestone

Comments

@qinxuye
Copy link
Contributor

qinxuye commented Sep 16, 2023

Describe the bug

DataFrame.copy() failed.

To Reproduce

To help us to reproduce this bug, please provide information below:


In [1]: import xorbits.pandas as pd

In [3]: df = pd.DataFrame({"a": [1, 2, 3], "b": ['a', 'b', 'a']})

In [4]: df.copy()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[4], line 1
----> 1 df.copy()

File ~/Workspace/xorbits/python/xorbits/core/adapter.py:311, in wrap_member_func.<locals>._wrapped(*args, **kwargs)
    309 @functools.wraps(member_func)
    310 def _wrapped(*args, **kwargs):
--> 311     return member_func(mars_entity, *args, **kwargs)

File ~/Workspace/xorbits/python/xorbits/core/adapter.py:472, in wrap_mars_callable.<locals>.wrapped(*args, **kwargs)
    470 @functools.wraps(c)
    471 def wrapped(*args, **kwargs):
--> 472     return from_mars(c(*to_mars(args), **to_mars(kwargs)))

File ~/Workspace/xorbits/python/xorbits/_mars/core/base.py:97, in Base.copy(self)
     96 def copy(self):
---> 97     return self.copy_to(type(self)(_key=self.key))

TypeError: DataFrame.__init__() got an unexpected keyword argument '_key'
@XprobeBot XprobeBot added the bug Something isn't working label Sep 16, 2023
@XprobeBot XprobeBot modified the milestones: v0.6.2, v0.6.3 Sep 16, 2023
@ChengjieLi28 ChengjieLi28 mentioned this issue Sep 20, 2023
2 tasks
@mergify mergify bot closed this as completed in #709 Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants