使用Apriori算法和Pandas进行顺序规则挖掘 [英] Sequential Rule Mining using Apriori Algorithm and Pandas

查看:245
本文介绍了使用Apriori算法和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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆