python - 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 是标识符
解决方案
推荐阅读
- sql-server - Spring Data JPA - 保存导致错误,而不是在输出语句中插入触发器
- spring - IIS 7.5 与 aws elb 问题 http 到 https j_spring_security_check.action
- flutter - Flutter 使用 CustomPainter 绘制倾斜的椭圆
- java - 如何使用在 xml 文件中定义的高度宽度和源定义 ImageView?
- java - 屏幕截图在 for 循环的下一次迭代中被覆盖,或者可能在第二次迭代中没有截图
- c - 如何使用 C 预处理器找到库的整个路径?
- android - 嵌套的 Fragment Back Press Child 内部的 Parent 导致问题
- amazon-web-services - Fargate 指标数据丢失
- amazon-redshift - 使用 CASE WHEN REDSHIFT 时添加 1 天
- ios - iOS 应用程序将无法在 Xcode 11.6 的 iPhone iOS 13.6 上运行