'numpy.ndarray' object has no attribute 'pd'
时间: 2023-10-16 09:09:31 浏览: 132
numpy.meshgrid()理解(小结)
5星 · 资源好评率100%
This error occurs when you try to use the 'pd' attribute on a NumPy array, which does not exist. 'pd' is an attribute of pandas library, not NumPy.
To fix this error, you need to make sure that you are using the correct library and that the object you are working with is a pandas dataframe. If you are working with a NumPy array, you can convert it to a pandas dataframe using the 'pd.DataFrame' method.
阅读全文