使用Apriori算法和Pandas进行顺序规则挖掘 [英] Sequential Rule Mining using Apriori Algorithm and Pandas
问题描述
我正在使用Apriori算法和FPA执行顺序规则挖掘,我在excel中具有数据集,如下所示,我想知道,如何使用下面的read_excel命令将数据加载到pandas数据框中?数据包含项目之间的--->,并位于单个列中,如下所示.
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.
推荐答案
message
是字符串类型,elif "what is" in message:
的语法似乎正确.
您检查缩进是否正确吗?有时,错误可能是一件非常简单的事情.
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..
这篇关于使用Apriori算法和Pandas进行顺序规则挖掘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!