aliyun / alibabacloud-odps-maxframe-client

Apache License 2.0
3 stars 1 forks source link

Series.reset_index: AttributeError: property 'names' of 'IndexData' object has no setter Selection deleted #39

Open snowljs opened 1 week ago

snowljs commented 1 week ago
s = md.Series([1, 2, 3, 4], name='foo',
              index=md.Index(['a', 'b', 'c', 'd'], name='idx'))
s.reset_index().execute()
---
File [~/Projcect/maxframe/core/maxframe_client/session/odps.py:203](http://localhost:8888/lab/tree/~/Projcect/maxframe/core/maxframe_client/session/odps.py#line=202), in MaxFrameSession._scan_and_replace_pandas_sources(self, graph)
    201 replacements = dict()
    202 for t in graph:
--> 203     replaced = self._upload_and_get_read_tileable(t)
    204     if replaced is None:
    205         continue

File [~/Projcect/maxframe/core/maxframe_client/session/odps.py:191](http://localhost:8888/lab/tree/~/Projcect/maxframe/core/maxframe_client/session/odps.py#line=190), in MaxFrameSession._upload_and_get_read_tileable(self, t)
    189 else:  # INDEX_TYPE
    190     if list(read_tileable.names) != list(t.names):
--> 191         read_tileable.names = t.names
    192 read_tileable._key = t.key
    193 read_tileable.params = t.params

File [~/Projcect/maxframe/core/maxframe/core/entity/core.py:146](http://localhost:8888/lab/tree/~/Projcect/maxframe/core/maxframe/core/entity/core.py#line=145), in Entity.__setattr__(self, key, value)
    144     object.__setattr__(self, key, value)
    145 except AttributeError:
--> 146     return setattr(self._data, key, value)

AttributeError: property 'names' of 'IndexData' object has no setter
---