Sequential Rule Mining using Apriori Algorithm and Pandas

拥有回忆 提交于 2019-12-24 09:57:16

问题


I am performing Sequential Rule Mining using Apriori Algorithm and FPA, I have the dataset in excel as shown below, I want to know, how should I load my data into pandas dataframe what I am using is the following read_excel command, but the data contains ---> between items and lies in single column as shown below.

How should I load and perform Pattern Mining.


回答1:


message is string type, and elif "what is" in message: seems to be correct in syntax. Have you checked whether the indentation is correct? Sometimes the bug can be a very simple thing..



来源:https://stackoverflow.com/questions/48279902/sequential-rule-mining-using-apriori-algorithm-and-pandas

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!