{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "b3dfd442",
   "metadata": {},
   "source": [
    "# SUT to IOT\n",
    "\n",
    "This notebook transforms the embedded test SUT table into an IOT according to any of the embedded transformation models (A, B, C, D).\n",
    "\n",
    "## Core method\n",
    "\n",
    "The relevant entry point is `Database.to_iot`.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "fbaffd1d",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-26T22:40:59.582687Z",
     "iopub.status.busy": "2026-04-26T22:40:59.582269Z",
     "iopub.status.idle": "2026-04-26T22:41:01.825632Z",
     "shell.execute_reply": "2026-04-26T22:41:01.825258Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Parser: excel reading SUT flows from /Users/lorenzorinaldi/Documents/GitHub/MARIO/mario/test/tables/test_SUT_standard.xlsx.\n",
      "INFO Parser: state payload ready with 10 canonical blocks.\n",
      "INFO Parser: excel state ready for SUT.\n",
      "INFO Metadata: initialized.\n"
     ]
    }
   ],
   "source": [
    "import mario\n",
    "db_sut = mario.load_test(\"SUT\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1c9f59bf",
   "metadata": {},
   "source": [
    "## Inspect the starting SUT"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "ced31481",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-26T22:41:01.947272Z",
     "iopub.status.busy": "2026-04-26T22:41:01.947152Z",
     "iopub.status.idle": "2026-04-26T22:41:01.950365Z",
     "shell.execute_reply": "2026-04-26T22:41:01.950061Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'SUT'"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "db_sut.table_type"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "b03464bb",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-26T22:41:01.951951Z",
     "iopub.status.busy": "2026-04-26T22:41:01.951863Z",
     "iopub.status.idle": "2026-04-26T22:41:01.954021Z",
     "shell.execute_reply": "2026-04-26T22:41:01.953778Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Activity': ['Manufacturing', 'Services'],\n",
       " 'Commodity': ['Goods', 'Services'],\n",
       " 'Factor of production': ['Taxes', 'Wages', 'Capital'],\n",
       " 'Satellite account': ['Employment', 'CO2'],\n",
       " 'Consumption category': ['Final demand'],\n",
       " 'Region': ['Region 1', 'Region 2']}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "db_sut.get_index(\"all\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d6e0a81b",
   "metadata": {},
   "source": [
    "## Transform to IOT"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "b92b7f4a",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-26T22:41:01.955491Z",
     "iopub.status.busy": "2026-04-26T22:41:01.955405Z",
     "iopub.status.idle": "2026-04-26T22:41:02.224335Z",
     "shell.execute_reply": "2026-04-26T22:41:02.224024Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Database: Transforming the database from SUT to IOT via method A\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolving Z for baseline.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: trying Z via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolved Z via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolving V for baseline.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: trying V via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolved V via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolving E for baseline.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: trying E via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolved E via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolving X for baseline.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: trying X via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolved X via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolving Y for baseline.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: trying Y via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolved Y via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "WARNING baseline deleted from the database\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Transformation of the database from SUT to IOT via method A\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "'IOT'"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "db_iot = db_sut.to_iot(\n",
    "    method=\"A\",  # method can be \"A\", \"B\", \"C\" or \"D\" according to documentation \n",
    "    inplace=False\n",
    ") \n",
    "db_iot.table_type"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "612be80f",
   "metadata": {},
   "source": [
    "## Inspect the resulting IOT compared with previous SUT"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "eabcc309",
   "metadata": {},
   "source": [
    "This is a structural transformation, not a local matrix edit. After the\n",
    "operation:\n",
    "\n",
    "* the *table* type becomes `IOT`\n",
    "* the baseline matrices are rebuilt accordingly\n",
    "* non-baseline scenarios are discarded"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "ec2979f5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'IOT'"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "db_iot.table_type"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "54b1eed9",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-26T22:41:02.226169Z",
     "iopub.status.busy": "2026-04-26T22:41:02.226046Z",
     "iopub.status.idle": "2026-04-26T22:41:02.228401Z",
     "shell.execute_reply": "2026-04-26T22:41:02.228169Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Factor of production': ['Taxes', 'Wages', 'Capital'],\n",
       " 'Satellite account': ['Employment', 'CO2'],\n",
       " 'Consumption category': ['Final demand'],\n",
       " 'Region': ['Region 1', 'Region 2'],\n",
       " 'Sector': ['Goods', 'Services']}"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "db_iot.get_index(\"all\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "56cb117a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolving Z for baseline.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: trying Z via concat.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "INFO Resolver: resolved Z via concat.\n"
     ]
    },
    {
     "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 tr th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe thead tr:last-of-type th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>Region</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Region 1</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Region 2</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Region 1</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Region 2</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>Level</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Activity</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Activity</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Commodity</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Commodity</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>Item</th>\n",
       "      <th>Manufacturing</th>\n",
       "      <th>Services</th>\n",
       "      <th>Manufacturing</th>\n",
       "      <th>Services</th>\n",
       "      <th>Goods</th>\n",
       "      <th>Services</th>\n",
       "      <th>Goods</th>\n",
       "      <th>Services</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Region</th>\n",
       "      <th>Level</th>\n",
       "      <th>Item</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"2\" valign=\"top\">Region 1</th>\n",
       "      <th rowspan=\"2\" valign=\"top\">Activity</th>\n",
       "      <th>Manufacturing</th>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>1.240653e+12</td>\n",
       "      <td>3.487923e+10</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Services</th>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>7.077650e+10</td>\n",
       "      <td>2.347886e+12</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"2\" valign=\"top\">Region 2</th>\n",
       "      <th rowspan=\"2\" valign=\"top\">Activity</th>\n",
       "      <th>Manufacturing</th>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>6.243698e+13</td>\n",
       "      <td>6.506942e+11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Services</th>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>5.907938e+11</td>\n",
       "      <td>1.039044e+14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"2\" valign=\"top\">Region 1</th>\n",
       "      <th rowspan=\"2\" valign=\"top\">Commodity</th>\n",
       "      <th>Goods</th>\n",
       "      <td>3.334903e+11</td>\n",
       "      <td>1.657755e+11</td>\n",
       "      <td>1.487965e+11</td>\n",
       "      <td>6.895332e+10</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Services</th>\n",
       "      <td>3.261811e+11</td>\n",
       "      <td>7.254021e+11</td>\n",
       "      <td>1.176727e+10</td>\n",
       "      <td>3.588505e+10</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"2\" valign=\"top\">Region 2</th>\n",
       "      <th rowspan=\"2\" valign=\"top\">Commodity</th>\n",
       "      <th>Goods</th>\n",
       "      <td>1.922623e+11</td>\n",
       "      <td>4.099986e+10</td>\n",
       "      <td>3.038628e+13</td>\n",
       "      <td>1.157115e+13</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Services</th>\n",
       "      <td>2.614852e+10</td>\n",
       "      <td>5.823465e+10</td>\n",
       "      <td>1.154871e+13</td>\n",
       "      <td>3.075294e+13</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "      <td>0.000000e+00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Region                                Region 1                    Region 2  \\\n",
       "Level                                 Activity                    Activity   \n",
       "Item                             Manufacturing      Services Manufacturing   \n",
       "Region   Level     Item                                                      \n",
       "Region 1 Activity  Manufacturing  0.000000e+00  0.000000e+00  0.000000e+00   \n",
       "                   Services       0.000000e+00  0.000000e+00  0.000000e+00   \n",
       "Region 2 Activity  Manufacturing  0.000000e+00  0.000000e+00  0.000000e+00   \n",
       "                   Services       0.000000e+00  0.000000e+00  0.000000e+00   \n",
       "Region 1 Commodity Goods          3.334903e+11  1.657755e+11  1.487965e+11   \n",
       "                   Services       3.261811e+11  7.254021e+11  1.176727e+10   \n",
       "Region 2 Commodity Goods          1.922623e+11  4.099986e+10  3.038628e+13   \n",
       "                   Services       2.614852e+10  5.823465e+10  1.154871e+13   \n",
       "\n",
       "Region                                              Region 1                \\\n",
       "Level                                              Commodity                 \n",
       "Item                                  Services         Goods      Services   \n",
       "Region   Level     Item                                                      \n",
       "Region 1 Activity  Manufacturing  0.000000e+00  1.240653e+12  3.487923e+10   \n",
       "                   Services       0.000000e+00  7.077650e+10  2.347886e+12   \n",
       "Region 2 Activity  Manufacturing  0.000000e+00  0.000000e+00  0.000000e+00   \n",
       "                   Services       0.000000e+00  0.000000e+00  0.000000e+00   \n",
       "Region 1 Commodity Goods          6.895332e+10  0.000000e+00  0.000000e+00   \n",
       "                   Services       3.588505e+10  0.000000e+00  0.000000e+00   \n",
       "Region 2 Commodity Goods          1.157115e+13  0.000000e+00  0.000000e+00   \n",
       "                   Services       3.075294e+13  0.000000e+00  0.000000e+00   \n",
       "\n",
       "Region                                Region 2                \n",
       "Level                                Commodity                \n",
       "Item                                     Goods      Services  \n",
       "Region   Level     Item                                       \n",
       "Region 1 Activity  Manufacturing  0.000000e+00  0.000000e+00  \n",
       "                   Services       0.000000e+00  0.000000e+00  \n",
       "Region 2 Activity  Manufacturing  6.243698e+13  6.506942e+11  \n",
       "                   Services       5.907938e+11  1.039044e+14  \n",
       "Region 1 Commodity Goods          0.000000e+00  0.000000e+00  \n",
       "                   Services       0.000000e+00  0.000000e+00  \n",
       "Region 2 Commodity Goods          0.000000e+00  0.000000e+00  \n",
       "                   Services       0.000000e+00  0.000000e+00  "
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "db_sut.Z"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "ffdf0504",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-26T22:41:02.229843Z",
     "iopub.status.busy": "2026-04-26T22:41:02.229740Z",
     "iopub.status.idle": "2026-04-26T22:41:02.258473Z",
     "shell.execute_reply": "2026-04-26T22:41:02.258193Z"
    }
   },
   "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 tr th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe thead tr:last-of-type th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>Region</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Region 1</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Region 2</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>Level</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Sector</th>\n",
       "      <th colspan=\"2\" halign=\"left\">Sector</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th>Item</th>\n",
       "      <th>Goods</th>\n",
       "      <th>Services</th>\n",
       "      <th>Goods</th>\n",
       "      <th>Services</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Region</th>\n",
       "      <th>Level</th>\n",
       "      <th>Item</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th rowspan=\"2\" valign=\"top\">Region 1</th>\n",
       "      <th rowspan=\"2\" valign=\"top\">Sector</th>\n",
       "      <th>Goods</th>\n",
       "      <td>3.502087e+11</td>\n",
       "      <td>1.490571e+11</td>\n",
       "      <td>1.497774e+11</td>\n",
       "      <td>6.797240e+10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Services</th>\n",
       "      <td>3.336807e+11</td>\n",
       "      <td>7.179024e+11</td>\n",
       "      <td>1.165245e+10</td>\n",
       "      <td>3.599987e+10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th rowspan=\"2\" valign=\"top\">Region 2</th>\n",
       "      <th rowspan=\"2\" valign=\"top\">Sector</th>\n",
       "      <th>Goods</th>\n",
       "      <td>2.027584e+11</td>\n",
       "      <td>3.050372e+10</td>\n",
       "      <td>3.060247e+13</td>\n",
       "      <td>1.135496e+13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Services</th>\n",
       "      <td>2.674844e+10</td>\n",
       "      <td>5.763473e+10</td>\n",
       "      <td>1.146426e+13</td>\n",
       "      <td>3.083740e+13</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Region                        Region 1                    Region 2  \\\n",
       "Level                           Sector                      Sector   \n",
       "Item                             Goods      Services         Goods   \n",
       "Region   Level  Item                                                 \n",
       "Region 1 Sector Goods     3.502087e+11  1.490571e+11  1.497774e+11   \n",
       "                Services  3.336807e+11  7.179024e+11  1.165245e+10   \n",
       "Region 2 Sector Goods     2.027584e+11  3.050372e+10  3.060247e+13   \n",
       "                Services  2.674844e+10  5.763473e+10  1.146426e+13   \n",
       "\n",
       "Region                                  \n",
       "Level                                   \n",
       "Item                          Services  \n",
       "Region   Level  Item                    \n",
       "Region 1 Sector Goods     6.797240e+10  \n",
       "                Services  3.599987e+10  \n",
       "Region 2 Sector Goods     1.135496e+13  \n",
       "                Services  3.083740e+13  "
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "db_iot.Z"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "mario",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.11"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
