ABC
ABC
"cells": [
{
"source": [
"<a href=\"https://www.kaggle.com/code/ranjeetkumbhar/ml-assignment-6-te-
it-sppu?scriptVersionId=110429627\" target=\"_blank\"><img align=\"left\"
alt=\"Kaggle\" title=\"Open in Kaggle\"
src=\"https://kaggle.com/static/images/open-in-kaggle.svg\"></a>"
],
"metadata": {
"id": "8xdCICCb79oS"
},
"cell_type": "markdown",
"id": "8xdCICCb79oS"
},
{
"cell_type": "code",
"execution_count": null,
"id": "0bfe58fc",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:23.00014Z",
"iopub.status.busy": "2022-11-08T18:11:22.999079Z",
"iopub.status.idle": "2022-11-08T18:11:23.017695Z",
"shell.execute_reply": "2022-11-08T18:11:23.016565Z"
},
"papermill": {
"duration": 0.028834,
"end_time": "2022-11-08T18:11:23.021309",
"exception": false,
"start_time": "2022-11-08T18:11:22.992475",
"status": "completed"
},
"tags": [],
"id": "0bfe58fc",
"outputId": "568852f8-7589-4b2a-9687-01440e904fba"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/kaggle/input/market-basket-optimization/Market_Basket_Optimisation.csv\n"
]
}
],
"source": [
"# This Python 3 environment comes with many helpful analytics libraries
installed\n",
"# It is defined by the kaggle/python Docker image:
https://github.com/kaggle/docker-python\n",
"# For example, here's several helpful packages to load\n",
"\n",
"import numpy as np # linear algebra\n",
"import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n",
"\n",
"# Input data files are available in the read-only \"../input/\" directory\
n",
"# For example, running this (by clicking run or pressing Shift+Enter) will
list all files under the input directory\n",
"\n",
"import os\n",
"for dirname, _, filenames in os.walk('/kaggle/input'):\n",
" for filename in filenames:\n",
" print(os.path.join(dirname, filename))\n",
"\n",
"# You can write up to 20GB to the current directory (/kaggle/working/)
that gets preserved as output when you create a version using \"Save & Run All\"\
n",
"# You can also write temporary files to /kaggle/temp/, but they won't be
saved outside of the current session"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8d3c0fe5",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:23.03277Z",
"iopub.status.busy": "2022-11-08T18:11:23.032365Z",
"iopub.status.idle": "2022-11-08T18:11:33.947984Z",
"shell.execute_reply": "2022-11-08T18:11:33.946874Z"
},
"papermill": {
"duration": 10.923366,
"end_time": "2022-11-08T18:11:33.950287",
"exception": false,
"start_time": "2022-11-08T18:11:23.026921",
"status": "completed"
},
"tags": [],
"id": "8d3c0fe5",
"outputId": "5a16a18c-4cbb-427e-c1c4-da867b3fcbcd"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: mlxtend in
/opt/conda/lib/python3.7/site-packages (0.21.0)\r\n",
"Requirement already satisfied: scikit-learn>=1.0.2 in
/opt/conda/lib/python3.7/site-packages (from mlxtend) (1.0.2)\r\n",
"Requirement already satisfied: scipy>=1.2.1 in
/opt/conda/lib/python3.7/site-packages (from mlxtend) (1.7.3)\r\n",
"Requirement already satisfied: joblib>=0.13.2 in
/opt/conda/lib/python3.7/site-packages (from mlxtend) (1.0.1)\r\n",
"Requirement already satisfied: setuptools in
/opt/conda/lib/python3.7/site-packages (from mlxtend) (59.8.0)\r\n",
"Requirement already satisfied: numpy>=1.16.2 in
/opt/conda/lib/python3.7/site-packages (from mlxtend) (1.21.6)\r\n",
"Requirement already satisfied: pandas>=0.24.2 in
/opt/conda/lib/python3.7/site-packages (from mlxtend) (1.3.5)\r\n",
"Requirement already satisfied: matplotlib>=3.0.0 in
/opt/conda/lib/python3.7/site-packages (from mlxtend) (3.5.3)\r\n",
"Requirement already satisfied: cycler>=0.10 in
/opt/conda/lib/python3.7/site-packages (from matplotlib>=3.0.0->mlxtend) (0.11.0)\
r\n",
"Requirement already satisfied: kiwisolver>=1.0.1 in
/opt/conda/lib/python3.7/site-packages (from matplotlib>=3.0.0->mlxtend) (1.4.3)\r\
n",
"Requirement already satisfied: pillow>=6.2.0 in
/opt/conda/lib/python3.7/site-packages (from matplotlib>=3.0.0->mlxtend) (9.1.1)\r\
n",
"Requirement already satisfied: packaging>=20.0 in
/opt/conda/lib/python3.7/site-packages (from matplotlib>=3.0.0->mlxtend) (21.3)\r\
n",
"Requirement already satisfied: fonttools>=4.22.0 in
/opt/conda/lib/python3.7/site-packages (from matplotlib>=3.0.0->mlxtend) (4.33.3)\
r\n",
"Requirement already satisfied: pyparsing>=2.2.1 in
/opt/conda/lib/python3.7/site-packages (from matplotlib>=3.0.0->mlxtend) (3.0.9)\r\
n",
"Requirement already satisfied: python-dateutil>=2.7 in
/opt/conda/lib/python3.7/site-packages (from matplotlib>=3.0.0->mlxtend) (2.8.2)\r\
n",
"Requirement already satisfied: pytz>=2017.3 in
/opt/conda/lib/python3.7/site-packages (from pandas>=0.24.2->mlxtend) (2022.1)\r\
n",
"Requirement already satisfied: threadpoolctl>=2.0.0 in
/opt/conda/lib/python3.7/site-packages (from scikit-learn>=1.0.2->mlxtend) (3.1.0)\
r\n",
"Requirement already satisfied: typing-extensions in
/opt/conda/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib>=3.0.0-
>mlxtend) (4.4.0)\r\n",
"Requirement already satisfied: six>=1.5 in
/opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7-
>matplotlib>=3.0.0->mlxtend) (1.15.0)\r\n",
"\u001b[33mWARNING: Running pip as the 'root' user can result in broken
permissions and conflicting behaviour with the system package manager. It is
recommended to use a virtual environment instead:
https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\r\n",
"\u001b[0m"
]
}
],
"source": [
"!pip install mlxtend"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5eb70f4a",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:33.961147Z",
"iopub.status.busy": "2022-11-08T18:11:33.960778Z",
"iopub.status.idle": "2022-11-08T18:11:34.931649Z",
"shell.execute_reply": "2022-11-08T18:11:34.930056Z"
},
"papermill": {
"duration": 0.979154,
"end_time": "2022-11-08T18:11:34.934201",
"exception": false,
"start_time": "2022-11-08T18:11:33.955047",
"status": "completed"
},
"tags": [],
"id": "5eb70f4a"
},
"outputs": [],
"source": [
"import csv\n",
"from mlxtend.preprocessing import TransactionEncoder\n",
"from mlxtend.frequent_patterns import apriori, association_rules"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "bcdf24a8",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:34.944806Z",
"iopub.status.busy": "2022-11-08T18:11:34.944419Z",
"iopub.status.idle": "2022-11-08T18:11:34.967673Z",
"shell.execute_reply": "2022-11-08T18:11:34.966497Z"
},
"papermill": {
"duration": 0.031149,
"end_time": "2022-11-08T18:11:34.969886",
"exception": false,
"start_time": "2022-11-08T18:11:34.938737",
"status": "completed"
},
"tags": [],
"id": "bcdf24a8"
},
"outputs": [],
"source": [
"data = []\n",
"with
open('../input/market-basket-optimization/Market_Basket_Optimisation.csv') as
file:\n",
" reader = csv.reader(file, delimiter=',')\n",
" for row in reader:\n",
" data +=[row]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "cfca797e",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:34.980269Z",
"iopub.status.busy": "2022-11-08T18:11:34.979936Z",
"iopub.status.idle": "2022-11-08T18:11:34.989883Z",
"shell.execute_reply": "2022-11-08T18:11:34.988077Z"
},
"papermill": {
"duration": 0.017397,
"end_time": "2022-11-08T18:11:34.991961",
"exception": false,
"start_time": "2022-11-08T18:11:34.974564",
"status": "completed"
},
"tags": [],
"id": "cfca797e",
"outputId": "538e01e6-85fa-42dd-bf74-98f913e4d31a"
},
"outputs": [
{
"data": {
"text/plain": [
"[['burgers', 'meatballs', 'eggs'],\n",
" ['chutney'],\n",
" ['turkey', 'avocado'],\n",
" ['mineral water', 'milk', 'energy bar', 'whole wheat rice', 'green
tea'],\n",
" ['low fat yogurt'],\n",
" ['whole wheat pasta', 'french fries'],\n",
" ['soup', 'light cream', 'shallot'],\n",
" ['frozen vegetables', 'spaghetti', 'green tea'],\n",
" ['french fries']]"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data[1:10] #list of list"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "710f248d",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:35.002858Z",
"iopub.status.busy": "2022-11-08T18:11:35.002531Z",
"iopub.status.idle": "2022-11-08T18:11:35.008641Z",
"shell.execute_reply": "2022-11-08T18:11:35.007159Z"
},
"papermill": {
"duration": 0.013876,
"end_time": "2022-11-08T18:11:35.010625",
"exception": false,
"start_time": "2022-11-08T18:11:34.996749",
"status": "completed"
},
"tags": [],
"id": "710f248d",
"outputId": "4717c207-cd4e-42f1-d5e7-16f748d498eb"
},
"outputs": [
{
"data": {
"text/plain": [
"7501"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(data)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "278f20b0",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:35.021791Z",
"iopub.status.busy": "2022-11-08T18:11:35.02142Z",
"iopub.status.idle": "2022-11-08T18:11:35.038462Z",
"shell.execute_reply": "2022-11-08T18:11:35.037099Z"
},
"papermill": {
"duration": 0.025483,
"end_time": "2022-11-08T18:11:35.041031",
"exception": false,
"start_time": "2022-11-08T18:11:35.015548",
"status": "completed"
},
"tags": [],
"id": "278f20b0"
},
"outputs": [],
"source": [
"te = TransactionEncoder()\n",
"x = te.fit_transform(data)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "323b64e0",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:35.052358Z",
"iopub.status.busy": "2022-11-08T18:11:35.052001Z",
"iopub.status.idle": "2022-11-08T18:11:35.058651Z",
"shell.execute_reply": "2022-11-08T18:11:35.057555Z"
},
"papermill": {
"duration": 0.014989,
"end_time": "2022-11-08T18:11:35.060878",
"exception": false,
"start_time": "2022-11-08T18:11:35.045889",
"status": "completed"
},
"tags": [],
"id": "323b64e0",
"outputId": "f767dcd9-4282-4a94-e9a6-44e98440417c"
},
"outputs": [
{
"data": {
"text/plain": [
"array([[False, True, True, ..., True, False, False],\n",
" [False, False, False, ..., False, False, False],\n",
" [False, False, False, ..., False, False, False],\n",
" ...,\n",
" [False, False, False, ..., False, False, False],\n",
" [False, False, False, ..., False, False, False],\n",
" [False, False, False, ..., False, True, False]])"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"x"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8ace6548",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:35.072361Z",
"iopub.status.busy": "2022-11-08T18:11:35.072001Z",
"iopub.status.idle": "2022-11-08T18:11:35.080368Z",
"shell.execute_reply": "2022-11-08T18:11:35.079378Z"
},
"papermill": {
"duration": 0.016953,
"end_time": "2022-11-08T18:11:35.082856",
"exception": false,
"start_time": "2022-11-08T18:11:35.065903",
"status": "completed"
},
"tags": [],
"id": "8ace6548",
"outputId": "22422182-b1e3-431d-fa8b-259bce4ed91a"
},
"outputs": [
{
"data": {
"text/plain": [
"[' asparagus',\n",
" 'almonds',\n",
" 'antioxydant juice',\n",
" 'asparagus',\n",
" 'avocado',\n",
" 'babies food',\n",
" 'bacon',\n",
" 'barbecue sauce',\n",
" 'black tea',\n",
" 'blueberries',\n",
" 'body spray',\n",
" 'bramble',\n",
" 'brownies',\n",
" 'bug spray',\n",
" 'burger sauce',\n",
" 'burgers',\n",
" 'butter',\n",
" 'cake',\n",
" 'candy bars',\n",
" 'carrots',\n",
" 'cauliflower',\n",
" 'cereals',\n",
" 'champagne',\n",
" 'chicken',\n",
" 'chili',\n",
" 'chocolate',\n",
" 'chocolate bread',\n",
" 'chutney',\n",
" 'cider',\n",
" 'clothes accessories',\n",
" 'cookies',\n",
" 'cooking oil',\n",
" 'corn',\n",
" 'cottage cheese',\n",
" 'cream',\n",
" 'dessert wine',\n",
" 'eggplant',\n",
" 'eggs',\n",
" 'energy bar',\n",
" 'energy drink',\n",
" 'escalope',\n",
" 'extra dark chocolate',\n",
" 'flax seed',\n",
" 'french fries',\n",
" 'french wine',\n",
" 'fresh bread',\n",
" 'fresh tuna',\n",
" 'fromage blanc',\n",
" 'frozen smoothie',\n",
" 'frozen vegetables',\n",
" 'gluten free bar',\n",
" 'grated cheese',\n",
" 'green beans',\n",
" 'green grapes',\n",
" 'green tea',\n",
" 'ground beef',\n",
" 'gums',\n",
" 'ham',\n",
" 'hand protein bar',\n",
" 'herb & pepper',\n",
" 'honey',\n",
" 'hot dogs',\n",
" 'ketchup',\n",
" 'light cream',\n",
" 'light mayo',\n",
" 'low fat yogurt',\n",
" 'magazines',\n",
" 'mashed potato',\n",
" 'mayonnaise',\n",
" 'meatballs',\n",
" 'melons',\n",
" 'milk',\n",
" 'mineral water',\n",
" 'mint',\n",
" 'mint green tea',\n",
" 'muffins',\n",
" 'mushroom cream sauce',\n",
" 'napkins',\n",
" 'nonfat milk',\n",
" 'oatmeal',\n",
" 'oil',\n",
" 'olive oil',\n",
" 'pancakes',\n",
" 'parmesan cheese',\n",
" 'pasta',\n",
" 'pepper',\n",
" 'pet food',\n",
" 'pickles',\n",
" 'protein bar',\n",
" 'red wine',\n",
" 'rice',\n",
" 'salad',\n",
" 'salmon',\n",
" 'salt',\n",
" 'sandwich',\n",
" 'shallot',\n",
" 'shampoo',\n",
" 'shrimp',\n",
" 'soda',\n",
" 'soup',\n",
" 'spaghetti',\n",
" 'sparkling water',\n",
" 'spinach',\n",
" 'strawberries',\n",
" 'strong cheese',\n",
" 'tea',\n",
" 'tomato juice',\n",
" 'tomato sauce',\n",
" 'tomatoes',\n",
" 'toothpaste',\n",
" 'turkey',\n",
" 'vegetables mix',\n",
" 'water spray',\n",
" 'white wine',\n",
" 'whole weat flour',\n",
" 'whole wheat pasta',\n",
" 'whole wheat rice',\n",
" 'yams',\n",
" 'yogurt cake',\n",
" 'zucchini']"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"te.columns_"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a6fcad5a",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:35.095023Z",
"iopub.status.busy": "2022-11-08T18:11:35.094671Z",
"iopub.status.idle": "2022-11-08T18:11:35.103794Z",
"shell.execute_reply": "2022-11-08T18:11:35.102427Z"
},
"papermill": {
"duration": 0.017709,
"end_time": "2022-11-08T18:11:35.105998",
"exception": false,
"start_time": "2022-11-08T18:11:35.088289",
"status": "completed"
},
"tags": [],
"id": "a6fcad5a"
},
"outputs": [],
"source": [
"df = pd.DataFrame(x, columns=te.columns_)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "98e139bb",
"metadata": {
"execution": {
"iopub.execute_input": "2022-11-08T18:11:35.118138Z",
"iopub.status.busy": "2022-11-08T18:11:35.117541Z",
"iopub.status.idle": "2022-11-08T18:11:35.153062Z",
"shell.execute_reply": "2022-11-08T18:11:35.151669Z"
},
"papermill": {
"duration": 0.04396,
"end_time": "2022-11-08T18:11:35.155164",
"exception": false,
"start_time": "2022-11-08T18:11:35.111204",
"status": "completed"
},
"tags": [],
"id": "98e139bb",
"outputId": "28efd2ed-0d45-46e9-e7dd-94fefae7c1b9"
},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>asparagus</th>\n",
" <th>almonds</th>\n",
" <th>antioxydant juice</th>\n",
" <th>asparagus</th>\n",
" <th>avocado</th>\n",
" <th>babies food</th>\n",
" <th>bacon</th>\n",
" <th>barbecue sauce</th>\n",
" <th>black tea</th>\n",
" <th>blueberries</th>\n",
" <th>...</th>\n",
" <th>turkey</th>\n",
" <th>vegetables mix</th>\n",
" <th>water spray</th>\n",
" <th>white wine</th>\n",
" <th>whole weat flour</th>\n",
" <th>whole wheat pasta</th>\n",
" <th>whole wheat rice</th>\n",
" <th>yams</th>\n",
" <th>yogurt cake</th>\n",
" <th>zucchini</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7496</th>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7497</th>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7498</th>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7499</th>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7500</th>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>...</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>False</td>\n",
" <td>True</td>\n",
" <td>False</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>7501 rows × 120 columns</p>\n",
"</div>"
],
"text/plain": [
" asparagus almonds antioxydant juice asparagus avocado
babies food \\\n",
"0 False True True False True
False \n",
"1 False False False False False
False \n",
"2 False False False False False
False \n",
"3 False False False False True
False \n",
"4 False False False False False
False \n",
"... ... ... ... ... ...
... \n",
"7496 False False False False False
False \n",
"7497 False False False False False
False \n",
"7498 False False False False False
False \n",
"7499 False False False False False
False \n",
"7500 False False False False False
False \n",
"\n",
" bacon barbecue sauce black tea blueberries ...
turkey \\\n",
"0 False False False False ... False \
n",
"1 False False False False ... False \
n",
"2 False False False False ... False \
n",
"3 False False False False ... True \
n",
"4 False False False False ... False \
n",
"... ... ... ... ... ... ... \
n",
"7496 False False False False ... False \
n",
"7497 False False False False ... False \
n",
"7498 False False False False ... False \
n",
"7499 False False False False ... False \
n",
"7500 False False False False ... False \
n",
"\n",
" vegetables mix water spray white wine whole weat flour \\\
n",
"0 True False False True \
n",
"1 False False False False \
n",
"2 False False False False \
n",
"3 False False False False \
n",
"4 False False False False \
n",
"... ... ... ... ... \
n",
"7496 False False False False \
n",
"7497 False False False False \
n",
"7498 False False False False \
n",
"7499 False False False False \
n",
"7500 False False False False \
n",
"\n",
" whole wheat pasta whole wheat rice yams yogurt cake
zucchini \n",
"0 False False True False
False \n",
"1 False False False False
False \n",
"2 False False False False
False \n",
"3 False False False False
False \n",
"4 False True False False
False \n",