' dataFrame'对象没有属性' to_delayed'?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
问题源于行:
.to_delayed()
方法是为dask DataFrames和dask数组定义的,但对于pandas
或numpy
objects而不是pandas
。标签x
和y
可能与pandas
dataframe关联。在“错误追溯图像”中,
attributeError
建议对象是pandasdataframe
(可能是另一个库的数据框架,但很可能是pandas一个)。从发布的图像中可以得出更多的东西。
The problem stems from the lines:
The
.to_delayed()
method is defined for dask DataFrames and dask Arrays, but not forpandas
ornumpy
objects. It's likely that the labelsX
andy
are associated with apandas
DataFrame.In the error traceback image, the
AttributeError
suggests that the object is a pandasDataFrame
(possibly another library's DataFrame, but most likely a pandas one).Not much more can be derived from the image posted.