'numpy.ndarray' object has no attribute 'reship'
时间: 2023-10-14 19:05:17 浏览: 77
The error message you received indicates that the `numpy.ndarray` object does not have an attribute named `reship`. This means that you likely called the `reship` method on a NumPy array, but `reship` is not a valid method for NumPy arrays.
It's possible that you misspelled the method name or are trying to use a method that doesn't exist for NumPy arrays. Double-check the spelling of the method name and make sure it is a valid method for NumPy arrays.
If you're not sure what method to use, you can check the NumPy documentation or try using the built-in methods for NumPy arrays, such as `reshape`, `transpose`, and `flatten`.
相关问题
numpy.ndarray object has no attribute type
numpy.ndarray对象没有"next"属性。该错误是因为在最新的NumPy版本中,numpy.flatiter对象的"next"方法已被弃用。取而代之的是使用内置的"__next__()"方法来获取下一个值。因此,您应该使用"fl.__next__()",而不是"fl.next()"来获取下一个值。
numpy.ndarray object has no attribute values
这是一个 Python 的错误信息,表示 numpy 的 ndarray 类型对象没有 values 属性。可能是因为你想使用 Pandas 的 DataFrame 中的 values 属性来获取 ndarray 类型的数据,但是误用在了一个不支持 values 属性的类型上。建议仔细检查代码,查找并解决对该属性的误用。
阅读全文