Featuretools实体集中的错误

时间:2018-08-24 08:47:11

标签: featuretools

使用featuretools定义实体集时,出现以下错误消息:

  

AttributeError:'str'对象没有属性'copy'

这是我的代码:

import featuretools.variable_types as vtype 

es = ft.EntitySet(id="Policy")
es = es.entity_from_dataframe(entity_id="Policy", dataframe='policy_df',index='Policy_no',variable_types={'Policy_no':vtype.Categorical})

有人遇到过同样的问题吗?

1 个答案:

答案 0 :(得分:0)

问题似乎出在参数dataframe='policy_df'上。数据框应为Pandas DataFrame对象,而不是字符串。 `