代码:
np.rank(myArray)
错误提示:
AttributeError Traceback (most recent call last)
<ipython-input-1-e6b9ab052145> in <module>
1 import numpy as np
----> 2 np.rank(myArray)
D:\anaconda\lib\site-packages\numpy\__init__.py in __getattr__(attr)
301 return Tester
302
--> 303 raise AttributeError("module {!r} has no attribute "
304 "{!r}".format(__name__, attr))
305
AttributeError: module 'numpy' has no attribute 'rank'
想知道这个问题怎么解决呢?
因为确实没有rank函数
你可能是想
https://jingyan.baidu.com/article/0eb457e51003cb42f1a90586.html