{"cells":[{"cell_type":"code","source":"from google.colab import drive\nimport os\ndrive.mount('/content/gdrive')\n# Establecer ruta de acceso en dr\nimport os\nprint(os.getcwd())\nos.chdir(\"/content/gdrive/My Drive\")","metadata":{"id":"nR7uNvK-Ar47","colab":{"base_uri":"https://localhost:8080/"},"cell_id":"340099fff1564420954cdf63efb5917e","outputId":"63bfc7be-7a1f-45e4-c0a8-390c5186927c","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":2518,"user_tz":240,"timestamp":1650828276465},"deepnote_cell_type":"code"},"outputs":[{"output_type":"stream","name":"stdout","text":"Drive already mounted at /content/gdrive; to attempt to forcibly remount, call drive.mount(\"/content/gdrive\", force_remount=True).\n/content/gdrive/My Drive\n"}],"execution_count":6},{"cell_type":"code","source":"# K-Means Clustering\n\n# Importacion de librerias\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport pandas as pd\n\n# Carga del conjunto de datos\ndataset = pd.read_csv(\"Mall_Customers.csv\", sep = \",\")\ndataset.head()","metadata":{"id":"kwFbLrasAbZX","colab":{"height":207,"base_uri":"https://localhost:8080/"},"cell_id":"69d952b490404e37a2315b7c2cdeab95","outputId":"5b935869-d1bc-4b2d-e848-e6ed70b49b3e","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":488,"user_tz":240,"timestamp":1650828277963},"deepnote_cell_type":"code"},"outputs":[{"output_type":"execute_result","data":{"text/plain":" CustomerID Genre Age Annual Income (k$) Spending Score (1-100)\n0 1 Male 19 15 39\n1 2 Male 21 15 81\n2 3 Female 20 16 6\n3 4 Female 23 16 77\n4 5 Female 31 17 40","text/html":"\n
\n
\n
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
CustomerIDGenreAgeAnnual Income (k$)Spending Score (1-100)
01Male191539
12Male211581
23Female20166
34Female231677
45Female311740
\n
\n \n \n \n\n \n
\n
\n "},"metadata":{},"execution_count":7}],"execution_count":7},{"cell_type":"code","source":"#Generamos nuestra x\nX = dataset.iloc[:, [3, 4]].values","metadata":{"id":"G-eJ02osAbZb","cell_id":"07d8203baab4439e9da398916d4dcf54","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":387,"user_tz":240,"timestamp":1650828280931},"deepnote_cell_type":"code"},"outputs":[],"execution_count":8},{"cell_type":"code","source":"X","metadata":{"id":"oFLYeMuv35iz","colab":{"base_uri":"https://localhost:8080/"},"cell_id":"8539ebcd6aa948b9b4a882a3b7fd9471","outputId":"5d2d5d89-ef78-42fc-9e3c-188766e20351","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":414,"user_tz":240,"timestamp":1650828281725},"deepnote_cell_type":"code"},"outputs":[{"output_type":"execute_result","data":{"text/plain":"array([[ 15, 39],\n [ 15, 81],\n [ 16, 6],\n [ 16, 77],\n [ 17, 40],\n [ 17, 76],\n [ 18, 6],\n [ 18, 94],\n [ 19, 3],\n [ 19, 72],\n [ 19, 14],\n [ 19, 99],\n [ 20, 15],\n [ 20, 77],\n [ 20, 13],\n [ 20, 79],\n [ 21, 35],\n [ 21, 66],\n [ 23, 29],\n [ 23, 98],\n [ 24, 35],\n [ 24, 73],\n [ 25, 5],\n [ 25, 73],\n [ 28, 14],\n [ 28, 82],\n [ 28, 32],\n [ 28, 61],\n [ 29, 31],\n [ 29, 87],\n [ 30, 4],\n [ 30, 73],\n [ 33, 4],\n [ 33, 92],\n [ 33, 14],\n [ 33, 81],\n [ 34, 17],\n [ 34, 73],\n [ 37, 26],\n [ 37, 75],\n [ 38, 35],\n [ 38, 92],\n [ 39, 36],\n [ 39, 61],\n [ 39, 28],\n [ 39, 65],\n [ 40, 55],\n [ 40, 47],\n [ 40, 42],\n [ 40, 42],\n [ 42, 52],\n [ 42, 60],\n [ 43, 54],\n [ 43, 60],\n [ 43, 45],\n [ 43, 41],\n [ 44, 50],\n [ 44, 46],\n [ 46, 51],\n [ 46, 46],\n [ 46, 56],\n [ 46, 55],\n [ 47, 52],\n [ 47, 59],\n [ 48, 51],\n [ 48, 59],\n [ 48, 50],\n [ 48, 48],\n [ 48, 59],\n [ 48, 47],\n [ 49, 55],\n [ 49, 42],\n [ 50, 49],\n [ 50, 56],\n [ 54, 47],\n [ 54, 54],\n [ 54, 53],\n [ 54, 48],\n [ 54, 52],\n [ 54, 42],\n [ 54, 51],\n [ 54, 55],\n [ 54, 41],\n [ 54, 44],\n [ 54, 57],\n [ 54, 46],\n [ 57, 58],\n [ 57, 55],\n [ 58, 60],\n [ 58, 46],\n [ 59, 55],\n [ 59, 41],\n [ 60, 49],\n [ 60, 40],\n [ 60, 42],\n [ 60, 52],\n [ 60, 47],\n [ 60, 50],\n [ 61, 42],\n [ 61, 49],\n [ 62, 41],\n [ 62, 48],\n [ 62, 59],\n [ 62, 55],\n [ 62, 56],\n [ 62, 42],\n [ 63, 50],\n [ 63, 46],\n [ 63, 43],\n [ 63, 48],\n [ 63, 52],\n [ 63, 54],\n [ 64, 42],\n [ 64, 46],\n [ 65, 48],\n [ 65, 50],\n [ 65, 43],\n [ 65, 59],\n [ 67, 43],\n [ 67, 57],\n [ 67, 56],\n [ 67, 40],\n [ 69, 58],\n [ 69, 91],\n [ 70, 29],\n [ 70, 77],\n [ 71, 35],\n [ 71, 95],\n [ 71, 11],\n [ 71, 75],\n [ 71, 9],\n [ 71, 75],\n [ 72, 34],\n [ 72, 71],\n [ 73, 5],\n [ 73, 88],\n [ 73, 7],\n [ 73, 73],\n [ 74, 10],\n [ 74, 72],\n [ 75, 5],\n [ 75, 93],\n [ 76, 40],\n [ 76, 87],\n [ 77, 12],\n [ 77, 97],\n [ 77, 36],\n [ 77, 74],\n [ 78, 22],\n [ 78, 90],\n [ 78, 17],\n [ 78, 88],\n [ 78, 20],\n [ 78, 76],\n [ 78, 16],\n [ 78, 89],\n [ 78, 1],\n [ 78, 78],\n [ 78, 1],\n [ 78, 73],\n [ 79, 35],\n [ 79, 83],\n [ 81, 5],\n [ 81, 93],\n [ 85, 26],\n [ 85, 75],\n [ 86, 20],\n [ 86, 95],\n [ 87, 27],\n [ 87, 63],\n [ 87, 13],\n [ 87, 75],\n [ 87, 10],\n [ 87, 92],\n [ 88, 13],\n [ 88, 86],\n [ 88, 15],\n [ 88, 69],\n [ 93, 14],\n [ 93, 90],\n [ 97, 32],\n [ 97, 86],\n [ 98, 15],\n [ 98, 88],\n [ 99, 39],\n [ 99, 97],\n [101, 24],\n [101, 68],\n [103, 17],\n [103, 85],\n [103, 23],\n [103, 69],\n [113, 8],\n [113, 91],\n [120, 16],\n [120, 79],\n [126, 28],\n [126, 74],\n [137, 18],\n [137, 83]])"},"metadata":{},"execution_count":9}],"execution_count":9},{"cell_type":"markdown","source":"Nos quedamos con las variables 3 y 4 de conjunto de datos, las cuales corresponden al ingreso anual en miles y la puntuación del cliente.","metadata":{"id":"hmz_9AZQAbZc","cell_id":"f3d97ebb3b8a44069cf249aa0f18dc5b","deepnote_cell_type":"markdown"}},{"cell_type":"code","source":"# Metodo del Codo para encontrar el numero optimo de clusters\nfrom sklearn.cluster import KMeans\nwcss = []\nfor i in range(1, 11):\n kmeans = KMeans(n_clusters = i, init = 'k-means++', random_state = 42)\n kmeans.fit(X)\n wcss.append(kmeans.inertia_)\n\n# Grafica de la suma de las distancias\nplt.plot(range(1, 11), wcss)\nplt.title('The Elbow Method')\nplt.xlabel('Number of clusters')\nplt.ylabel('WCSS')\nplt.show()","metadata":{"id":"bO4ZgQGlAbZe","colab":{"height":295,"base_uri":"https://localhost:8080/"},"cell_id":"2639f0fe5a374f81a56df3c2b270854d","outputId":"6e74a49a-6e94-45ac-caaa-d347e5e70d49","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":4515,"user_tz":240,"timestamp":1650828288691},"deepnote_cell_type":"code"},"outputs":[{"output_type":"display_data","data":{"text/plain":"
","image/png":"iVBORw0KGgoAAAANSUhEUgAAAZcAAAEWCAYAAACqitpwAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAgAElEQVR4nO3deXhV5bn+8e+TOSFhTpBRhgQEhzpERQUVVMShalvbWtuC1qq1KI79tbY9pz2tnQetQz1FreJQh6o9UrEqKgqCgsEJBCGReZBBZsKU5Pn9sd/AJkISYCdrJ7k/17WvrP2u6VlbyZ13rXevZe6OiIhIIqVEXYCIiDQ/ChcREUk4hYuIiCScwkVERBJO4SIiIgmncBERkYRTuEiLYGY/N7NHG2E/Pc3MzSwtvH/dzL7b0PttDIk8FjN7yMxuS8S2JDkpXKRZMLPNca8qM9sa9/6bCd7XQ2a2o8Y+P0jkPg5UXLi9V6O9Y6h5YT230yhhLM2XwkWaBXfPrX4Bi4EvxrU91gC7/H38Pt39Cw2wj4ORY2ZHxL2/FFgQVTHS8ihcpCXJMLOHzWyTmX1kZsXVM8ysi5k9Y2arzWyBmY1O4H77mNl0M9toZs+ZWfu4/V4QalkfTjv1D+2Xm9m/45YrNbN/xr1fYmZH17LPR4CRce9HAA/HL7CvYzaz4cCPga/vpVd2qJlNCZ/hy2bWsa5jCfOOMbN3w3pPAln1++ikqVK4SEtyAfAE0BYYB9wNYGYpwL+BD4CuwBnADWZ2doL2OwL4DtAZqADuDPvtCzwO3ADkAy8A/zazDOANYLCZpZhZFyADOCms1xvIBT6sZZ+PApeYWaqZDQjLT6ueWdsxu/uLwK+BJ/fSK7sUuBwoCDXdUtexhOP5P2KB1x74J/CV/foEpclRuEhL8qa7v+DulcR+0VX/0jweyHf3X7j7DnefD9wHXFLLtm4Jf6FXv8bWsuwj7j7L3bcA/wV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1PM4jgT+YGZVwE7gmtrqluZLd0UWEZGE02kxERFJOIWLiIgknMJFREQSTuEiIiIJp3AREZGEU7iIiEjCKVxERCTh/j+a4E5r2ZzDlgAAAABJRU5ErkJggg==\n"},"metadata":{"needs_background":"light"}}],"execution_count":10},{"cell_type":"markdown","source":"En el bloque anterior, generamos los clusters para valores de 1 a 10 (en el rango de 1 a 11) y obtenemos para cada uno de ellos, la suma de las distancias con el tributo inertia_ del objeto kmeans. En la gráfica observamos que la disminución en la suma de las distancias se atenúa cuando el número de clusters es igual a 5, por lo que, para este caso práctico, el número óptimo de clusters será de 5.\n\n","metadata":{"id":"yUAs_LIoAbZf","cell_id":"9d7efcd946914bd09d71bd823b10835f","deepnote_cell_type":"markdown"}},{"cell_type":"code","source":"# Creando el k-Means para los 5 grupos encontrados\nkmeans = KMeans(n_clusters = 5, init = 'k-means++', random_state = 42) #k-means++ acelera la convergencia, respecto de random\ny_kmeans = kmeans.fit_predict(X)","metadata":{"id":"SV6wYYkSAbZg","cell_id":"f416550134ec45d09d8a8a5665ee7eca","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":686,"user_tz":240,"timestamp":1650828290534},"deepnote_cell_type":"code"},"outputs":[],"execution_count":11},{"cell_type":"code","source":"y_kmeans","metadata":{"id":"5OFHBCXd5BUB","colab":{"base_uri":"https://localhost:8080/"},"cell_id":"a1fe1f3bec59442cbdfc9c282669cebf","outputId":"df85b585-96bf-4371-d395-baf4e0731fdb","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":6,"user_tz":240,"timestamp":1650828291220},"deepnote_cell_type":"code"},"outputs":[{"output_type":"execute_result","data":{"text/plain":"array([2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3,\n 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 0,\n 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 1, 4, 0, 4, 1, 4, 1, 4,\n 0, 4, 1, 4, 1, 4, 1, 4, 1, 4, 0, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4,\n 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4,\n 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4,\n 1, 4], dtype=int32)"},"metadata":{},"execution_count":12}],"execution_count":12},{"cell_type":"code","source":"dataset['pred']=y_kmeans\ndataset","metadata":{"id":"sbI-pTMa5iAA","colab":{"height":424,"base_uri":"https://localhost:8080/"},"cell_id":"b68204e54994439081ccd47755381f1d","outputId":"179efd57-6a32-45d4-e521-956ec19dd95b","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":17,"user_tz":240,"timestamp":1650828292430},"deepnote_cell_type":"code"},"outputs":[{"output_type":"execute_result","data":{"text/plain":" CustomerID Genre Age Annual Income (k$) Spending Score (1-100) pred\n0 1 Male 19 15 39 2\n1 2 Male 21 15 81 3\n2 3 Female 20 16 6 2\n3 4 Female 23 16 77 3\n4 5 Female 31 17 40 2\n.. ... ... ... ... ... ...\n195 196 Female 35 120 79 4\n196 197 Female 45 126 28 1\n197 198 Male 32 126 74 4\n198 199 Male 32 137 18 1\n199 200 Male 30 137 83 4\n\n[200 rows x 6 columns]","text/html":"\n
\n
\n
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
CustomerIDGenreAgeAnnual Income (k$)Spending Score (1-100)pred
01Male1915392
12Male2115813
23Female201662
34Female2316773
45Female3117402
.....................
195196Female35120794
196197Female45126281
197198Male32126744
198199Male32137181
199200Male30137834
\n

200 rows × 6 columns

\n
\n \n \n \n\n \n
\n
\n "},"metadata":{},"execution_count":13}],"execution_count":13},{"cell_type":"code","source":"dataset.groupby(['pred']).mean()","metadata":{"id":"xK4J9mxx5mGE","colab":{"height":238,"base_uri":"https://localhost:8080/"},"cell_id":"58dc149898e1438da13f50b1712eb409","outputId":"58a74e30-8f87-46da-852b-2ca1dea9727d","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":11,"user_tz":240,"timestamp":1650828294254},"deepnote_cell_type":"code"},"outputs":[{"output_type":"execute_result","data":{"text/plain":" CustomerID Age Annual Income (k$) Spending Score (1-100)\npred \n0 86.320988 42.716049 55.296296 49.518519\n1 164.371429 41.114286 88.200000 17.114286\n2 23.000000 45.217391 26.304348 20.913043\n3 23.090909 25.272727 25.727273 79.363636\n4 162.000000 32.692308 86.538462 82.128205","text/html":"\n
\n
\n
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
CustomerIDAgeAnnual Income (k$)Spending Score (1-100)
pred
086.32098842.71604955.29629649.518519
1164.37142941.11428688.20000017.114286
223.00000045.21739126.30434820.913043
323.09090925.27272725.72727379.363636
4162.00000032.69230886.53846282.128205
\n
\n \n \n \n\n \n
\n
\n "},"metadata":{},"execution_count":14}],"execution_count":14},{"cell_type":"markdown","source":"Para poder observar gráficamente la asignación de los 200 clientes a 5 grupos o clusters realizamos lo siguiente, le asignamos un color a cada grupo y marcamos los centroides en amarillo:","metadata":{"id":"LYkwuK4hAbZg","cell_id":"5cdcc2538fc943ae9519a5b4a0be3f60","deepnote_cell_type":"markdown"}},{"cell_type":"code","source":"# Visualizacion grafica de los clusters\nplt.scatter(X[y_kmeans == 0, 0], X[y_kmeans == 0, 1], s = 100, c = 'red', label = 'Cluster 1')\nplt.scatter(X[y_kmeans == 1, 0], X[y_kmeans == 1, 1], s = 100, c = 'blue', label = 'Cluster 2')\nplt.scatter(X[y_kmeans == 2, 0], X[y_kmeans == 2, 1], s = 100, c = 'green', label = 'Cluster 3')\nplt.scatter(X[y_kmeans == 3, 0], X[y_kmeans == 3, 1], s = 100, c = 'cyan', label = 'Cluster 4')\nplt.scatter(X[y_kmeans == 4, 0], X[y_kmeans == 4, 1], s = 100, c = 'magenta', label = 'Cluster 5')\n\nplt.scatter(kmeans.cluster_centers_[:, 0], kmeans.cluster_centers_[:, 1], s = 300, c = 'yellow', label = 'Centroids')\n\nplt.title('Clusters of customers')\nplt.xlabel('Annual Income (k$)')\nplt.ylabel('Spending Score (1-100)')\nplt.legend()\nplt.show()","metadata":{"id":"MRaMWK8PAbZh","colab":{"height":295,"base_uri":"https://localhost:8080/"},"cell_id":"cac6345910944253bdddf2e8516d1f3b","outputId":"a7534b1c-936a-4668-a1c0-c39c42bc513b","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":562,"user_tz":240,"timestamp":1650828296268},"deepnote_cell_type":"code"},"outputs":[{"output_type":"display_data","data":{"text/plain":"
","image/png":"iVBORw0KGgoAAAANSUhEUgAAAYYAAAEWCAYAAABi5jCmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEg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7cuB0mRSuI1K5/itsnwFOStpa2rtAoZf/CbBdkYN7JXA3zal1DjK1rYSkm2bwOQ6sabB9DTwOvCvpilJ3QymbJFY6F1X81zHDdlSyeMiJIWlVeoD9DbYBFv7rpAFghaRjQC+R2xfgA2CppOPAbmI76b9gJ7FFdRT4DFhF9OcoMAp8BDzjkEWeL31AtyKh+zfEM4k6bH8LLC/bWVX7p8TzloPlp7b3SfqcyFg2WK5d4x7gYBNxJW1GqqsmSZsh6SngjO2ZHk43+vbb7m+wfQxssX36fwoxaXFyxZAk7cer1D+zmIuh6puyxfVCTgqLm1wxJEmSJHXkiiFJkiSpIyeGJEmSpI6cGJIkSZI6cmJIkiRJ6siJIUmSJKnjb+CbBncO6HNyAAAAAElFTkSuQmCC\n"},"metadata":{"needs_background":"light"}}],"execution_count":15},{"cell_type":"markdown","source":"\nCreated in deepnote.com \nCreated in Deepnote","metadata":{"created_in_deepnote_cell":true,"deepnote_cell_type":"markdown"}}],"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"K - Means - CoderHouse (Ejemplo 1).ipynb","provenance":[],"collapsed_sections":[]},"deepnote":{},"kernelspec":{"name":"python3","language":"python","display_name":"Python 3"},"varInspector":{"cols":{"lenVar":40,"lenName":16,"lenType":16},"kernels_config":{"r":{"library":"var_list.r","varRefreshCmd":"cat(var_dic_list()) ","delete_cmd_prefix":"rm(","delete_cmd_postfix":") "},"python":{"library":"var_list.py","varRefreshCmd":"print(var_dic_list())","delete_cmd_prefix":"del ","delete_cmd_postfix":""}},"window_display":false,"types_to_exclude":["module","function","builtin_function_or_method","instance","_Feature"]},"language_info":{"name":"python","version":"3.8.5","mimetype":"text/x-python","file_extension":".py","pygments_lexer":"ipython3","codemirror_mode":{"name":"ipython","version":3},"nbconvert_exporter":"python"},"deepnote_notebook_id":"388f15415b294d09814940fa9369f9b6","deepnote_execution_queue":[]}}