Closed qinxuye closed 10 months ago
DataFrame.copy() failed.
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'
Describe the bug
DataFrame.copy() failed.
To Reproduce
To help us to reproduce this bug, please provide information below: