首页 > 解决方案 > AssertionError: Index is not unique on dataframe (Entity cust) using Featuretools

问题描述

我有一个如下的数据框

customerid                                   term   age
08a858899538ddb8e015390510b321f0830199897     30     24
18a858959537a097401537a4e316e25f730196361     60     72
a8589c253ace09b0153af6ba58f1f313019822366     45     38

我正在使用功能工具创建如下实体

es = es.entity_from_dataframe(entity_id = 'cust', dataframe = df, index = 'customerid')

但我得到了错误

AssertionError: Index is not unique on dataframe (Entity cust)

然而 customerid 是标识符

标签: pythonpython-3.xfeature-extractionfeaturetools

解决方案


推荐阅读