是否可以合并实体集中的实体,例如熊猫中的数据框?与实体标准化相反。
如果我有以下es:
Entityset: transactions
Entities:
sessions [Rows: 35, Columns: 6]
products [Rows: 5, Columns: 2]
transactions [Rows: 500, Columns: 5]
Relationships:
transactions.product_id -> products.product_id
transactions.session_id -> sessions.session_id
并且我正在寻找类似这样的功能来合并实体:
es = es.denormalize_entity(first_entity_id="sessions",
second_entity_id="customers",
index="customer_id")
我将得到以下输出:
Entityset: transactions
Entities:
products [Rows: 5, Columns: 2]
transactions [Rows: 500, Columns: 10]
Relationships:
transactions.product_id -> products.product_id