Spaces:
Sleeping
Sleeping
File size: 22,984 Bytes
d38101e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 | {
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "290dff84",
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"\n",
"df = pd.read_csv(\"books_cleaned.csv\", encoding=\"utf-8\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "2e2d9604",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"RangeIndex: 6397 entries, 0 to 6396\n",
"Data columns (total 11 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 isbn13 6397 non-null int64 \n",
" 1 authors 6397 non-null object \n",
" 2 categories 6364 non-null object \n",
" 3 thumbnail 6190 non-null object \n",
" 4 description 6397 non-null object \n",
" 5 published_year 6397 non-null float64\n",
" 6 average_rating 6397 non-null float64\n",
" 7 num_pages 6397 non-null float64\n",
" 8 ratings_count 6397 non-null float64\n",
" 9 title_and_subtitle 6397 non-null object \n",
" 10 tagged_description 6397 non-null object \n",
"dtypes: float64(4), int64(1), object(6)\n",
"memory usage: 549.9+ KB\n"
]
}
],
"source": [
"df.info()"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "06585b26",
"metadata": {},
"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>categories</th>\n",
" <th>count</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Fiction</td>\n",
" <td>2491</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Juvenile Fiction</td>\n",
" <td>519</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Biography & Autobiography</td>\n",
" <td>388</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>History</td>\n",
" <td>255</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Literary Criticism</td>\n",
" <td>163</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>520</th>\n",
" <td>Humorous stories</td>\n",
" <td>1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>521</th>\n",
" <td>Ballets</td>\n",
" <td>1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>522</th>\n",
" <td>Aged women</td>\n",
" <td>1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>523</th>\n",
" <td>Imperialism</td>\n",
" <td>1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>524</th>\n",
" <td>Illinois</td>\n",
" <td>1</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>525 rows × 2 columns</p>\n",
"</div>"
],
"text/plain": [
" categories count\n",
"0 Fiction 2491\n",
"1 Juvenile Fiction 519\n",
"2 Biography & Autobiography 388\n",
"3 History 255\n",
"4 Literary Criticism 163\n",
".. ... ...\n",
"520 Humorous stories 1\n",
"521 Ballets 1\n",
"522 Aged women 1\n",
"523 Imperialism 1\n",
"524 Illinois 1\n",
"\n",
"[525 rows x 2 columns]"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# too many categories\n",
"df[\"categories\"].value_counts().reset_index()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "1976240c",
"metadata": {},
"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>isbn13</th>\n",
" <th>authors</th>\n",
" <th>categories</th>\n",
" <th>thumbnail</th>\n",
" <th>description</th>\n",
" <th>published_year</th>\n",
" <th>average_rating</th>\n",
" <th>num_pages</th>\n",
" <th>ratings_count</th>\n",
" <th>title_and_subtitle</th>\n",
" <th>tagged_description</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
"Empty DataFrame\n",
"Columns: [isbn13, authors, categories, thumbnail, description, published_year, average_rating, num_pages, ratings_count, title_and_subtitle, tagged_description]\n",
"Index: []"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df[df[\"description\"].str.len() < 25 ]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8effbaa7",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 6,
"id": "7a11c3d3",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"c:\\Users\\NonsoDev\\Documents\\Allcodes\\Projects_DL_for resume\\Recommender systems\\book reccomender - llm\\venv\\Lib\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
" from .autonotebook import tqdm as notebook_tqdm\n",
"Device set to use cpu\n"
]
}
],
"source": [
"# let us change the categories to a more manageable number, fiction and non fiction with a zero shot classifier\n",
"from transformers import pipeline\n",
"classifier = pipeline(\"zero-shot-classification\", model=\"facebook/bart-large-mnli\")"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "3cc8882a",
"metadata": {},
"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>sequence</th>\n",
" <th>categories</th>\n",
" <th>scores</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>A NOVEL THAT READERS and critics have been eag...</td>\n",
" <td>[fiction, history, biography, fantasy, mystery...</td>\n",
" <td>[0.8558421730995178, 0.6128803491592407, 0.296...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>A new 'Christie for Christmas' -- a full-lengt...</td>\n",
" <td>[mystery, fiction, fantasy, scifi, biography, ...</td>\n",
" <td>[0.9339157342910767, 0.5139176249504089, 0.155...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Volume Two of Stephen Donaldson's acclaimed se...</td>\n",
" <td>[fiction, fantasy, history, scifi, biography, ...</td>\n",
" <td>[0.5638813972473145, 0.2660749554634094, 0.249...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>A memorable, mesmerizing heroine Jennifer -- b...</td>\n",
" <td>[scifi, biography, fiction, history, romance, ...</td>\n",
" <td>[0.19755955040454865, 0.09938773512840271, 0.0...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Lewis' work on the nature of love divides love...</td>\n",
" <td>[mystery, romance, history, biography, scifi, ...</td>\n",
" <td>[0.16078977286815643, 0.06188512220978737, 0.0...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>\"In The Problem of Pain, C.S. Lewis, one of th...</td>\n",
" <td>[mystery, history, biography, scifi, romance, ...</td>\n",
" <td>[0.6848734021186829, 0.11091233044862747, 0.08...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>Until Vasco da Gama discovered the sea-route t...</td>\n",
" <td>[history, mystery, biography, scifi, fiction, ...</td>\n",
" <td>[0.9738430976867676, 0.19697055220603943, 0.18...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>A new-cover reissue of the fourth book in the ...</td>\n",
" <td>[scifi, fantasy, fiction, mystery, history, ro...</td>\n",
" <td>[0.9945376515388489, 0.9806752800941467, 0.934...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>Kate Blackwell is an enigma and one of the mos...</td>\n",
" <td>[mystery, biography, fiction, scifi, history, ...</td>\n",
" <td>[0.9990025162696838, 0.43301281332969666, 0.04...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>One of Sidney Sheldon's most popular and bests...</td>\n",
" <td>[romance, mystery, biography, fantasy, scifi, ...</td>\n",
" <td>[0.6518456935882568, 0.4315004348754883, 0.367...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" sequence \\\n",
"0 A NOVEL THAT READERS and critics have been eag... \n",
"1 A new 'Christie for Christmas' -- a full-lengt... \n",
"2 Volume Two of Stephen Donaldson's acclaimed se... \n",
"3 A memorable, mesmerizing heroine Jennifer -- b... \n",
"4 Lewis' work on the nature of love divides love... \n",
"5 \"In The Problem of Pain, C.S. Lewis, one of th... \n",
"6 Until Vasco da Gama discovered the sea-route t... \n",
"7 A new-cover reissue of the fourth book in the ... \n",
"8 Kate Blackwell is an enigma and one of the mos... \n",
"9 One of Sidney Sheldon's most popular and bests... \n",
"\n",
" categories \\\n",
"0 [fiction, history, biography, fantasy, mystery... \n",
"1 [mystery, fiction, fantasy, scifi, biography, ... \n",
"2 [fiction, fantasy, history, scifi, biography, ... \n",
"3 [scifi, biography, fiction, history, romance, ... \n",
"4 [mystery, romance, history, biography, scifi, ... \n",
"5 [mystery, history, biography, scifi, romance, ... \n",
"6 [history, mystery, biography, scifi, fiction, ... \n",
"7 [scifi, fantasy, fiction, mystery, history, ro... \n",
"8 [mystery, biography, fiction, scifi, history, ... \n",
"9 [romance, mystery, biography, fantasy, scifi, ... \n",
"\n",
" scores \n",
"0 [0.8558421730995178, 0.6128803491592407, 0.296... \n",
"1 [0.9339157342910767, 0.5139176249504089, 0.155... \n",
"2 [0.5638813972473145, 0.2660749554634094, 0.249... \n",
"3 [0.19755955040454865, 0.09938773512840271, 0.0... \n",
"4 [0.16078977286815643, 0.06188512220978737, 0.0... \n",
"5 [0.6848734021186829, 0.11091233044862747, 0.08... \n",
"6 [0.9738430976867676, 0.19697055220603943, 0.18... \n",
"7 [0.9945376515388489, 0.9806752800941467, 0.934... \n",
"8 [0.9990025162696838, 0.43301281332969666, 0.04... \n",
"9 [0.6518456935882568, 0.4315004348754883, 0.367... "
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"fiction_categories = [\"fiction\",\"mystery\",\"romance\",\"scifi\",\"fantasy\",\"biography\",\"history\"]\n",
"\n",
"df.head(10).apply(\n",
" lambda x: classifier(x[\"description\"], candidate_labels=fiction_categories, multi_label=True),\n",
" axis=1,\n",
" result_type=\"expand\",\n",
").rename(columns={\"labels\": \"categories\", \"scores\": \"scores\"})"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "365964c7",
"metadata": {},
"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>isbn13</th>\n",
" <th>authors</th>\n",
" <th>categories</th>\n",
" <th>thumbnail</th>\n",
" <th>description</th>\n",
" <th>published_year</th>\n",
" <th>average_rating</th>\n",
" <th>num_pages</th>\n",
" <th>ratings_count</th>\n",
" <th>title_and_subtitle</th>\n",
" <th>tagged_description</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>9780002005883</td>\n",
" <td>Marilynne Robinson</td>\n",
" <td>Fiction</td>\n",
" <td>http://books.google.com/books/content?id=KQZCP...</td>\n",
" <td>A NOVEL THAT READERS and critics have been eag...</td>\n",
" <td>2004.0</td>\n",
" <td>3.85</td>\n",
" <td>247.0</td>\n",
" <td>361.0</td>\n",
" <td>Gilead</td>\n",
" <td>9780002005883 A NOVEL THAT READERS and critics...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>9780002261982</td>\n",
" <td>Charles Osborne;Agatha Christie</td>\n",
" <td>Detective and mystery stories</td>\n",
" <td>http://books.google.com/books/content?id=gA5GP...</td>\n",
" <td>A new 'Christie for Christmas' -- a full-lengt...</td>\n",
" <td>2000.0</td>\n",
" <td>3.83</td>\n",
" <td>241.0</td>\n",
" <td>5164.0</td>\n",
" <td>Spider's Web A Novel</td>\n",
" <td>9780002261982 A new 'Christie for Christmas' -...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>9780006163831</td>\n",
" <td>Stephen R. Donaldson</td>\n",
" <td>American fiction</td>\n",
" <td>http://books.google.com/books/content?id=OmQaw...</td>\n",
" <td>Volume Two of Stephen Donaldson's acclaimed se...</td>\n",
" <td>1982.0</td>\n",
" <td>3.97</td>\n",
" <td>479.0</td>\n",
" <td>172.0</td>\n",
" <td>The One Tree</td>\n",
" <td>9780006163831 Volume Two of Stephen Donaldson'...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>9780006178736</td>\n",
" <td>Sidney Sheldon</td>\n",
" <td>Fiction</td>\n",
" <td>http://books.google.com/books/content?id=FKo2T...</td>\n",
" <td>A memorable, mesmerizing heroine Jennifer -- b...</td>\n",
" <td>1993.0</td>\n",
" <td>3.93</td>\n",
" <td>512.0</td>\n",
" <td>29532.0</td>\n",
" <td>Rage of angels</td>\n",
" <td>9780006178736 A memorable, mesmerizing heroine...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>9780006280897</td>\n",
" <td>Clive Staples Lewis</td>\n",
" <td>Christian life</td>\n",
" <td>http://books.google.com/books/content?id=XhQ5X...</td>\n",
" <td>Lewis' work on the nature of love divides love...</td>\n",
" <td>2002.0</td>\n",
" <td>4.15</td>\n",
" <td>170.0</td>\n",
" <td>33684.0</td>\n",
" <td>The Four Loves</td>\n",
" <td>9780006280897 Lewis' work on the nature of lov...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" isbn13 authors \\\n",
"0 9780002005883 Marilynne Robinson \n",
"1 9780002261982 Charles Osborne;Agatha Christie \n",
"2 9780006163831 Stephen R. Donaldson \n",
"3 9780006178736 Sidney Sheldon \n",
"4 9780006280897 Clive Staples Lewis \n",
"\n",
" categories \\\n",
"0 Fiction \n",
"1 Detective and mystery stories \n",
"2 American fiction \n",
"3 Fiction \n",
"4 Christian life \n",
"\n",
" thumbnail \\\n",
"0 http://books.google.com/books/content?id=KQZCP... \n",
"1 http://books.google.com/books/content?id=gA5GP... \n",
"2 http://books.google.com/books/content?id=OmQaw... \n",
"3 http://books.google.com/books/content?id=FKo2T... \n",
"4 http://books.google.com/books/content?id=XhQ5X... \n",
"\n",
" description published_year \\\n",
"0 A NOVEL THAT READERS and critics have been eag... 2004.0 \n",
"1 A new 'Christie for Christmas' -- a full-lengt... 2000.0 \n",
"2 Volume Two of Stephen Donaldson's acclaimed se... 1982.0 \n",
"3 A memorable, mesmerizing heroine Jennifer -- b... 1993.0 \n",
"4 Lewis' work on the nature of love divides love... 2002.0 \n",
"\n",
" average_rating num_pages ratings_count title_and_subtitle \\\n",
"0 3.85 247.0 361.0 Gilead \n",
"1 3.83 241.0 5164.0 Spider's Web A Novel \n",
"2 3.97 479.0 172.0 The One Tree \n",
"3 3.93 512.0 29532.0 Rage of angels \n",
"4 4.15 170.0 33684.0 The Four Loves \n",
"\n",
" tagged_description \n",
"0 9780002005883 A NOVEL THAT READERS and critics... \n",
"1 9780002261982 A new 'Christie for Christmas' -... \n",
"2 9780006163831 Volume Two of Stephen Donaldson'... \n",
"3 9780006178736 A memorable, mesmerizing heroine... \n",
"4 9780006280897 Lewis' work on the nature of lov... "
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.head()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "96c4d3c9",
"metadata": {},
"outputs": [],
"source": [
"from googlesearch import search\n",
"\n",
"def fetch_first_google_link(query):\n",
" results = search(query, num_results=1, lang=\"en\")\n",
" return list(results) if results else None\n",
"\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 25,
"id": "402a59f3",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['https://books.google.com/books/about/The_One_Tree.html?id=dXzwAAAAQBAJ&source=kp_cover']\n"
]
}
],
"source": [
"print(fetch_first_google_link(\"The One Tree by Stephen R. Donaldson -google books\"))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "be3349dc",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "7da59931",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"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.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|