Closed snowljs closed 1 month ago
idx = md.Index(['A', 'C', 'A', 'B'], name='score') idx.rename('grade').execute() --- File [~/anaconda3/envs/py311/lib/python3.11/site-packages/maxframe/core/mode.py:77](http://localhost:8888/lab/tree/~/anaconda3/envs/py311/lib/python3.11/site-packages/maxframe/core/mode.py#line=76), in _EnterModeFuncWrapper.__call__.<locals>._inner(*args, **kwargs) 74 @functools.wraps(func) 75 def _inner(*args, **kwargs): 76 with enter_mode(**mode_name_to_value): ---> 77 return func(*args, **kwargs) File [~/anaconda3/envs/py311/lib/python3.11/site-packages/maxframe_client/session/odps.py:193](http://localhost:8888/lab/tree/~/anaconda3/envs/py311/lib/python3.11/site-packages/maxframe_client/session/odps.py#line=192), in MaxFrameSession._scan_and_replace_pandas_sources(self, graph) 191 replacements = dict() 192 for t in graph: --> 193 replaced = self._upload_and_get_read_tileable(t) 194 if replaced is None: 195 continue File [~/anaconda3/envs/py311/lib/python3.11/site-packages/maxframe_client/session/odps.py:181](http://localhost:8888/lab/tree/~/anaconda3/envs/py311/lib/python3.11/site-packages/maxframe_client/session/odps.py#line=180), in MaxFrameSession._upload_and_get_read_tileable(self, t) 179 else: # INDEX_TYPE 180 if list(read_tileable.names) != list(t.names): --> 181 read_tileable.names = t.names 182 read_tileable._key = t.key 183 read_tileable.params = t.params File [~/anaconda3/envs/py311/lib/python3.11/site-packages/maxframe/core/entity/core.py:146](http://localhost:8888/lab/tree/~/anaconda3/envs/py311/lib/python3.11/site-packages/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 ---