Groceries Dataset For Market Basket Analysis(MBA)
This is a dataset for market basket analysis(MBA)
@kaggle.rashikrahmanpritom_groceries_for_market_basket_analysismba
This is a dataset for market basket analysis(MBA)
@kaggle.rashikrahmanpritom_groceries_for_market_basket_analysismba
The initial dataset was collected from Groceries dataset. Then data was modified and fragmented into 2 datasets for ease of MBA implementation. Here the "groceries data.csv" contains groceries transaction data from which you can do EDA and pre-process the data to feed it in the apriori algorithm. But I have also added pre-processed data as "basket.csv" from which you'll just need to replace nan and encode it using TransactionEncoder after that you can feed the encoded data into the apriori algorithm.
CREATE TABLE basket (
"n_0" VARCHAR -- 0,
"n_1" VARCHAR -- 1,
"n_2" VARCHAR -- 2,
"n_3" VARCHAR -- 3,
"n_4" VARCHAR -- 4,
"n_5" VARCHAR -- 5,
"n_6" VARCHAR -- 6,
"n_7" VARCHAR -- 7,
"n_8" VARCHAR -- 8,
"n_9" VARCHAR -- 9,
"n_10" VARCHAR -- 10
);CREATE TABLE groceries_data (
"member_number" BIGINT,
"date" TIMESTAMP,
"itemdescription" VARCHAR,
"year" BIGINT,
"month" BIGINT,
"day" BIGINT,
"day_of_week" BIGINT
);Anyone who has the link will be able to view this.