使用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})
有人遇到过同样的问题吗?
答案 0 :(得分:0)
问题似乎出在参数dataframe='policy_df'
上。数据框应为Pandas DataFrame
对象,而不是字符串。
`