Traceback (most recent call last):
File "C:/Users/qiqia/Desktop/pt_sdk.py", line 43, in
Co.put_data()
File "C:/Users/qiqia/Desktop/pt_sdk.py", line 25, in put_data
print(type(table.to_pandas()))
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\expr\expressions.py", line 43, in call
return self._func(args, kwargs)
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\expr\expressions.py", line 1091, in to_pandas
return self.execute(wrapper=wrapper, kwargs)
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\expr\expressions.py", line 43, in call
return self._func(args, kwargs)
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\expr\expressions.py", line 191, in execute
return self._handle_delay_call('execute', self, wrapper=wrapper, kwargs)
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\expr\expressions.py", line 43, in call
return self._func(*args, **kwargs)
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\expr\expressions.py", line 142, in _handle_delay_call
from ..engines import get_default_engine
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\engines.py", line 17, in
from .backends.engine import get_default_engine
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\backends\engine.py", line 26, in
from .pd.engine import PandasEngine
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\backends\pd\engine.py", line 20, in
from .compiler import PandasCompiler
File "C:\Users\qiqia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\odps\df\backends\pd\compiler.py", line 81, in
'CumMedian': pd.expanding_median,
AttributeError: module 'pandas' has no attribute 'expanding_median'
我在使用odps的时候,在读取数据想转化为pandas中的DataFrame类型,但是报错了,不知道是什么情况,按照教材来写的代码。` class Conntect_odps(object):
Process finished with exit code 1 `