Oragne3中的频繁项目集小部件需要从“文件”小部件输入。包含“transactions”的文件应该是 basket ,如示例所示:
Bread, Milk
Bread, Diapers, Beer, Eggs
Milk, Diapers, Beer, Cola
Bread, Milk, Diapers, Beer
Bread, Milk, Diapers, Cola
但是我的文件实际上有一个带有用户ID的列和带有实际事务的第二列,如下所示:
XYZ001, "Bread, Milk"
XYZ002, "Bread, Diapers, Beer, Eggs"
XYZ003, "Milk, Diapers, Beer, Cola"
XYZ004, "Bread, Milk, Diapers, Beer"
XYZ005, "Bread, Milk, Diapers, Cola"
如何将事务(第二列)传递给频繁的项目集小部件?
答案 0 :(得分:0)
像这样转换您的购物篮文件:
user=1, Bread, Milk
user=2, Bread, Diapers, Beer, Eggs
user=3, Milk, Diapers, Beer, Cola
user=4, Bread, Milk, Diapers, Beer
user=5, Bread, Milk, Diapers, Cola
然后做你想做的任何事情(即剥离)user
列?