diff --git a/lab-web-scraping.ipynb b/lab-web-scraping.ipynb index e552783..b58770d 100644 --- a/lab-web-scraping.ipynb +++ b/lab-web-scraping.ipynb @@ -110,14 +110,1437 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "40359eee-9cd7-4884-bfa4-83344c222305", "metadata": { "id": "40359eee-9cd7-4884-bfa4-83344c222305" }, "outputs": [], "source": [ - "# Your solution goes here" + "import requests\n", + "from bs4 import BeautifulSoup\n", + "import pandas as pd" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "da34a628", + "metadata": {}, + "outputs": [], + "source": [ + "def scrape_books(min_rating, max_price):\n", + " base_url = \"https://books.toscrape.com/catalogue/\"\n", + " page_url = \"https://books.toscrape.com/catalogue/page-1.html\"\n", + "\n", + " rating_map = {\n", + " \"One\": 1,\n", + " \"Two\": 2,\n", + " \"Three\": 3,\n", + " \"Four\": 4,\n", + " \"Five\": 5\n", + " }\n", + "\n", + " books_data = []\n", + "\n", + " while page_url:\n", + " response = requests.get(page_url)\n", + " soup = BeautifulSoup(response.text, \"html.parser\")\n", + "\n", + " books = soup.find_all(\"article\", class_=\"product_pod\")\n", + "\n", + " for book in books:\n", + " rating_word = book.find(\"p\", class_=\"star-rating\")[\"class\"][1]\n", + " rating = rating_map[rating_word]\n", + "\n", + " price_text = book.find(\"p\", class_=\"price_color\").text\n", + " price = float(\n", + " \"\".join(ch for ch in price_text if ch.isdigit() or ch == \".\")\n", + ")\n", + "\n", + " if rating >= min_rating and price <= max_price:\n", + " title = book.h3.a[\"title\"]\n", + " relative_url = book.h3.a[\"href\"]\n", + " book_url = base_url + relative_url\n", + "\n", + " book_response = requests.get(book_url)\n", + " book_soup = BeautifulSoup(book_response.text, \"html.parser\")\n", + "\n", + " rows = book_soup.find(\"table\").find_all(\"tr\")\n", + " upc = rows[0].find(\"td\").text\n", + "\n", + " genre = book_soup.find(\"ul\", class_=\"breadcrumb\").find_all(\"a\")[2].text\n", + " availability = book_soup.find(\"p\", class_=\"instock availability\").text.strip()\n", + "\n", + " description_section = book_soup.find(\"div\", id=\"product_description\")\n", + " if description_section:\n", + " description = description_section.find_next_sibling(\"p\").text\n", + " else:\n", + " description = \"No description available\"\n", + "\n", + " books_data.append({\n", + " \"UPC\": upc,\n", + " \"Title\": title,\n", + " \"Price (£)\": price,\n", + " \"Rating\": rating,\n", + " \"Genre\": genre,\n", + " \"Availability\": availability,\n", + " \"Description\": description\n", + " })\n", + "\n", + " next_button = soup.find(\"li\", class_=\"next\")\n", + "\n", + " if next_button:\n", + " next_page = next_button.find(\"a\")[\"href\"]\n", + " page_url = base_url + next_page\n", + " else:\n", + " page_url = None\n", + "\n", + " return pd.DataFrame(books_data)" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "a4a36ae2", + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.microsoft.datawrangler.viewer.v0+json": { + "columns": [ + { + "name": "index", + "rawType": "int64", + "type": "integer" + }, + { + "name": "UPC", + "rawType": "object", + "type": "string" + }, + { + "name": "Title", + "rawType": "object", + "type": "string" + }, + { + "name": "Price (£)", + "rawType": "float64", + "type": "float" + }, + { + "name": "Rating", + "rawType": "int64", + "type": "integer" + }, + { + "name": "Genre", + "rawType": "object", + "type": "string" + }, + { + "name": "Availability", + "rawType": "object", + "type": "string" + }, + { + "name": "Description", + "rawType": "object", + "type": "string" + } + ], + "ref": "e4c81d34-0d7c-4b3b-8a1a-1fc5f40c419c", + "rows": [ + [ + "0", + "ce6396b0f23f6ecc", + "Set Me Free", + "17.46", + "5", + "Young Adult", + "In stock (19 available)", + "Aaron Ledbetter’s future had been planned out for him since before he was born. Each year, the Ledbetter family vacation on Tybee Island gave Aaron a chance to briefly free himself from his family’s expectations. When he meets Jonas “Lucky” Luckett, a caricature artist in town with the traveling carnival, he must choose between the life that’s been mapped out for him, and Aaron Ledbetter’s future had been planned out for him since before he was born. Each year, the Ledbetter family vacation on Tybee Island gave Aaron a chance to briefly free himself from his family’s expectations. When he meets Jonas “Lucky” Luckett, a caricature artist in town with the traveling carnival, he must choose between the life that’s been mapped out for him, and the chance at true love. ...more" + ], + [ + "1", + "6258a1f6a6dcfe50", + "The Four Agreements: A Practical Guide to Personal Freedom", + "17.66", + "5", + "Spirituality", + "In stock (18 available)", + "In The Four Agreements, don Miguel Ruiz reveals the source of self-limiting beliefs that rob us of joy and create needless suffering. Based on ancient Toltec wisdom, the Four Agreements offer a powerful code of conduct that can rapidly transform our lives to a new experience of freedom, true happiness, and love. The Four Agreements are: Be Impeccable With Your Word, Don't In The Four Agreements, don Miguel Ruiz reveals the source of self-limiting beliefs that rob us of joy and create needless suffering. Based on ancient Toltec wisdom, the Four Agreements offer a powerful code of conduct that can rapidly transform our lives to a new experience of freedom, true happiness, and love. The Four Agreements are: Be Impeccable With Your Word, Don't Take Anything Personally, Don't Make Assumptions, Always Do Your Best. ...more" + ], + [ + "2", + "6be3beb0793a53e7", + "Sophie's World", + "15.94", + "5", + "Philosophy", + "In stock (18 available)", + "A page-turning novel that is also an exploration of the great philosophical concepts of Western thought, Sophie’s World has fired the imagination of readers all over the world, with more than twenty million copies in print.One day fourteen-year-old Sophie Amundsen comes home from school to find in her mailbox two notes, with one question on each: “Who are you?” and “Where A page-turning novel that is also an exploration of the great philosophical concepts of Western thought, Sophie’s World has fired the imagination of readers all over the world, with more than twenty million copies in print.One day fourteen-year-old Sophie Amundsen comes home from school to find in her mailbox two notes, with one question on each: “Who are you?” and “Where does the world come from?” From that irresistible beginning, Sophie becomes obsessed with questions that take her far beyond what she knows of her Norwegian village. Through those letters, she enrolls in a kind of correspondence course, covering Socrates to Sartre, with a mysterious philosopher, while receiving letters addressed to another girl. Who is Hilde? And why does her mail keep turning up? To unravel this riddle, Sophie must use the philosophy she is learning—but the truth turns out to be far more complicated than she could have imagined. ...more" + ], + [ + "3", + "657fe5ead67a7767", + "Untitled Collection: Sabbath Poems 2014", + "14.27", + "4", + "Poetry", + "In stock (16 available)", + "More than thirty-five years ago, when the weather allowed, Wendell Berry began spending his sabbaths outdoors, walking and wandering around familiar territory, seeking a deep intimacy only time could provide. These walks arranged themselves into poems and each year since he has completed a sequence dated by the year of its composition. Last year we collected the lot into a More than thirty-five years ago, when the weather allowed, Wendell Berry began spending his sabbaths outdoors, walking and wandering around familiar territory, seeking a deep intimacy only time could provide. These walks arranged themselves into poems and each year since he has completed a sequence dated by the year of its composition. Last year we collected the lot into a collection, This Day, the Sabbath Poems 1979-2013. This new sequence for the following year is one of the richest yet. This group provides a virtual syllabus for all of Mr. Berry’s cultural and agricultural work in concentrated form. Many of these poems are drawn from the view from a small porch in the woods, a place of stillness and reflection, a vantage point “of the one/life of the forest composed/of uncountable lives in countless/years each life coherent itself within/ the coherence, the great composure,/of all.” A new collection of Wendell Berry poems is always an occasion of joyful celebration and this one is especially so. ...more" + ], + [ + "4", + "51653ef291ab7ddc", + "This One Summer", + "19.49", + "4", + "Sequential Art", + "In stock (16 available)", + "Every summer, Rose goes with her mom and dad to a lake house in Awago Beach. It's their getaway, their refuge. Rosie's friend Windy is always there, too, like the little sister she never had. But this summer is different. Rose's mom and dad won't stop fighting, and when Rose and Windy seek a distraction from the drama, they find themselves with a whole new set of problems. Every summer, Rose goes with her mom and dad to a lake house in Awago Beach. It's their getaway, their refuge. Rosie's friend Windy is always there, too, like the little sister she never had. But this summer is different. Rose's mom and dad won't stop fighting, and when Rose and Windy seek a distraction from the drama, they find themselves with a whole new set of problems. It's a summer of secrets and sorrow and growing up, and it's a good thing Rose and Windy have each other.In This One Summer two stellar creators redefine the teen graphic novel. Cousins Mariko and Jillian Tamaki, the team behind Skim, have collaborated on this gorgeous, heartbreaking, and ultimately hopeful story about a girl on the cusp of her teen age — a story of renewal and revelation. ...more" + ] + ], + "shape": { + "columns": 7, + "rows": 5 + } + }, + "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", + "
UPCTitlePrice (£)RatingGenreAvailabilityDescription
0ce6396b0f23f6eccSet Me Free17.465Young AdultIn stock (19 available)Aaron Ledbetter’s future had been planned ou...
16258a1f6a6dcfe50The Four Agreements: A Practical Guide to Pers...17.665SpiritualityIn stock (18 available)In The Four Agreements, don Miguel Ruiz reveal...
26be3beb0793a53e7Sophie's World15.945PhilosophyIn stock (18 available)A page-turning novel that is also an explorati...
3657fe5ead67a7767Untitled Collection: Sabbath Poems 201414.274PoetryIn stock (16 available)More than thirty-five years ago, when the weat...
451653ef291ab7ddcThis One Summer19.494Sequential ArtIn stock (16 available)Every summer, Rose goes with her mom and dad t...
\n", + "
" + ], + "text/plain": [ + " UPC Title \\\n", + "0 ce6396b0f23f6ecc Set Me Free \n", + "1 6258a1f6a6dcfe50 The Four Agreements: A Practical Guide to Pers... \n", + "2 6be3beb0793a53e7 Sophie's World \n", + "3 657fe5ead67a7767 Untitled Collection: Sabbath Poems 2014 \n", + "4 51653ef291ab7ddc This One Summer \n", + "\n", + " Price (£) Rating Genre Availability \\\n", + "0 17.46 5 Young Adult In stock (19 available) \n", + "1 17.66 5 Spirituality In stock (18 available) \n", + "2 15.94 5 Philosophy In stock (18 available) \n", + "3 14.27 4 Poetry In stock (16 available) \n", + "4 19.49 4 Sequential Art In stock (16 available) \n", + "\n", + " Description \n", + "0 Aaron Ledbetter’s future had been planned ou... \n", + "1 In The Four Agreements, don Miguel Ruiz reveal... \n", + "2 A page-turning novel that is also an explorati... \n", + "3 More than thirty-five years ago, when the weat... \n", + "4 Every summer, Rose goes with her mom and dad t... " + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "books_df = scrape_books(min_rating=4, max_price=20)\n", + "books_df.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "51218744", + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.microsoft.datawrangler.viewer.v0+json": { + "columns": [ + { + "name": "index", + "rawType": "int64", + "type": "integer" + }, + { + "name": "UPC", + "rawType": "object", + "type": "string" + }, + { + "name": "Title", + "rawType": "object", + "type": "string" + }, + { + "name": "Price (£)", + "rawType": "float64", + "type": "float" + }, + { + "name": "Rating", + "rawType": "int64", + "type": "integer" + }, + { + "name": "Genre", + "rawType": "object", + "type": "string" + }, + { + "name": "Availability", + "rawType": "object", + "type": "string" + }, + { + "name": "Description", + "rawType": "object", + "type": "string" + } + ], + "ref": "8ee3ff6d-60e8-4ba2-9814-4e7f3e122385", + "rows": [ + [ + "0", + "ce6396b0f23f6ecc", + "Set Me Free", + "17.46", + "5", + "Young Adult", + "In stock (19 available)", + "Aaron Ledbetter’s future had been planned out for him since before he was born. Each year, the Ledbetter family vacation on Tybee Island gave Aaron a chance to briefly free himself from his family’s expectations. When he meets Jonas “Lucky” Luckett, a caricature artist in town with the traveling carnival, he must choose between the life that’s been mapped out for him, and Aaron Ledbetter’s future had been planned out for him since before he was born. Each year, the Ledbetter family vacation on Tybee Island gave Aaron a chance to briefly free himself from his family’s expectations. When he meets Jonas “Lucky” Luckett, a caricature artist in town with the traveling carnival, he must choose between the life that’s been mapped out for him, and the chance at true love. ...more" + ], + [ + "1", + "6258a1f6a6dcfe50", + "The Four Agreements: A Practical Guide to Personal Freedom", + "17.66", + "5", + "Spirituality", + "In stock (18 available)", + "In The Four Agreements, don Miguel Ruiz reveals the source of self-limiting beliefs that rob us of joy and create needless suffering. Based on ancient Toltec wisdom, the Four Agreements offer a powerful code of conduct that can rapidly transform our lives to a new experience of freedom, true happiness, and love. The Four Agreements are: Be Impeccable With Your Word, Don't In The Four Agreements, don Miguel Ruiz reveals the source of self-limiting beliefs that rob us of joy and create needless suffering. Based on ancient Toltec wisdom, the Four Agreements offer a powerful code of conduct that can rapidly transform our lives to a new experience of freedom, true happiness, and love. The Four Agreements are: Be Impeccable With Your Word, Don't Take Anything Personally, Don't Make Assumptions, Always Do Your Best. ...more" + ], + [ + "2", + "6be3beb0793a53e7", + "Sophie's World", + "15.94", + "5", + "Philosophy", + "In stock (18 available)", + "A page-turning novel that is also an exploration of the great philosophical concepts of Western thought, Sophie’s World has fired the imagination of readers all over the world, with more than twenty million copies in print.One day fourteen-year-old Sophie Amundsen comes home from school to find in her mailbox two notes, with one question on each: “Who are you?” and “Where A page-turning novel that is also an exploration of the great philosophical concepts of Western thought, Sophie’s World has fired the imagination of readers all over the world, with more than twenty million copies in print.One day fourteen-year-old Sophie Amundsen comes home from school to find in her mailbox two notes, with one question on each: “Who are you?” and “Where does the world come from?” From that irresistible beginning, Sophie becomes obsessed with questions that take her far beyond what she knows of her Norwegian village. Through those letters, she enrolls in a kind of correspondence course, covering Socrates to Sartre, with a mysterious philosopher, while receiving letters addressed to another girl. Who is Hilde? And why does her mail keep turning up? To unravel this riddle, Sophie must use the philosophy she is learning—but the truth turns out to be far more complicated than she could have imagined. ...more" + ], + [ + "3", + "657fe5ead67a7767", + "Untitled Collection: Sabbath Poems 2014", + "14.27", + "4", + "Poetry", + "In stock (16 available)", + "More than thirty-five years ago, when the weather allowed, Wendell Berry began spending his sabbaths outdoors, walking and wandering around familiar territory, seeking a deep intimacy only time could provide. These walks arranged themselves into poems and each year since he has completed a sequence dated by the year of its composition. Last year we collected the lot into a More than thirty-five years ago, when the weather allowed, Wendell Berry began spending his sabbaths outdoors, walking and wandering around familiar territory, seeking a deep intimacy only time could provide. These walks arranged themselves into poems and each year since he has completed a sequence dated by the year of its composition. Last year we collected the lot into a collection, This Day, the Sabbath Poems 1979-2013. This new sequence for the following year is one of the richest yet. This group provides a virtual syllabus for all of Mr. Berry’s cultural and agricultural work in concentrated form. Many of these poems are drawn from the view from a small porch in the woods, a place of stillness and reflection, a vantage point “of the one/life of the forest composed/of uncountable lives in countless/years each life coherent itself within/ the coherence, the great composure,/of all.” A new collection of Wendell Berry poems is always an occasion of joyful celebration and this one is especially so. ...more" + ], + [ + "4", + "51653ef291ab7ddc", + "This One Summer", + "19.49", + "4", + "Sequential Art", + "In stock (16 available)", + "Every summer, Rose goes with her mom and dad to a lake house in Awago Beach. It's their getaway, their refuge. Rosie's friend Windy is always there, too, like the little sister she never had. But this summer is different. Rose's mom and dad won't stop fighting, and when Rose and Windy seek a distraction from the drama, they find themselves with a whole new set of problems. Every summer, Rose goes with her mom and dad to a lake house in Awago Beach. It's their getaway, their refuge. Rosie's friend Windy is always there, too, like the little sister she never had. But this summer is different. Rose's mom and dad won't stop fighting, and when Rose and Windy seek a distraction from the drama, they find themselves with a whole new set of problems. It's a summer of secrets and sorrow and growing up, and it's a good thing Rose and Windy have each other.In This One Summer two stellar creators redefine the teen graphic novel. Cousins Mariko and Jillian Tamaki, the team behind Skim, have collaborated on this gorgeous, heartbreaking, and ultimately hopeful story about a girl on the cusp of her teen age — a story of renewal and revelation. ...more" + ] + ], + "shape": { + "columns": 7, + "rows": 5 + } + }, + "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", + "
UPCTitlePrice (£)RatingGenreAvailabilityDescription
0ce6396b0f23f6eccSet Me Free17.465Young AdultIn stock (19 available)Aaron Ledbetter’s future had been planned ou...
16258a1f6a6dcfe50The Four Agreements: A Practical Guide to Pers...17.665SpiritualityIn stock (18 available)In The Four Agreements, don Miguel Ruiz reveal...
26be3beb0793a53e7Sophie's World15.945PhilosophyIn stock (18 available)A page-turning novel that is also an explorati...
3657fe5ead67a7767Untitled Collection: Sabbath Poems 201414.274PoetryIn stock (16 available)More than thirty-five years ago, when the weat...
451653ef291ab7ddcThis One Summer19.494Sequential ArtIn stock (16 available)Every summer, Rose goes with her mom and dad t...
\n", + "
" + ], + "text/plain": [ + " UPC Title \\\n", + "0 ce6396b0f23f6ecc Set Me Free \n", + "1 6258a1f6a6dcfe50 The Four Agreements: A Practical Guide to Pers... \n", + "2 6be3beb0793a53e7 Sophie's World \n", + "3 657fe5ead67a7767 Untitled Collection: Sabbath Poems 2014 \n", + "4 51653ef291ab7ddc This One Summer \n", + "\n", + " Price (£) Rating Genre Availability \\\n", + "0 17.46 5 Young Adult In stock (19 available) \n", + "1 17.66 5 Spirituality In stock (18 available) \n", + "2 15.94 5 Philosophy In stock (18 available) \n", + "3 14.27 4 Poetry In stock (16 available) \n", + "4 19.49 4 Sequential Art In stock (16 available) \n", + "\n", + " Description \n", + "0 Aaron Ledbetter’s future had been planned ou... \n", + "1 In The Four Agreements, don Miguel Ruiz reveal... \n", + "2 A page-turning novel that is also an explorati... \n", + "3 More than thirty-five years ago, when the weat... \n", + "4 Every summer, Rose goes with her mom and dad t... " + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "books_df = scrape_books(min_rating=4, max_price=20)\n", + "\n", + "books_df.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "2d596d9f", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "RangeIndex: 75 entries, 0 to 74\n", + "Data columns (total 7 columns):\n", + " # Column Non-Null Count Dtype \n", + "--- ------ -------------- ----- \n", + " 0 UPC 75 non-null object \n", + " 1 Title 75 non-null object \n", + " 2 Price (£) 75 non-null float64\n", + " 3 Rating 75 non-null int64 \n", + " 4 Genre 75 non-null object \n", + " 5 Availability 75 non-null object \n", + " 6 Description 75 non-null object \n", + "dtypes: float64(1), int64(1), object(5)\n", + "memory usage: 4.2+ KB\n" + ] + } + ], + "source": [ + "books_df.info()" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "6adf7b5a", + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.microsoft.datawrangler.viewer.v0+json": { + "columns": [ + { + "name": "index", + "rawType": "object", + "type": "string" + }, + { + "name": "Price (£)", + "rawType": "float64", + "type": "float" + }, + { + "name": "Rating", + "rawType": "float64", + "type": "float" + } + ], + "ref": "b139253c-131e-4f60-87d9-9f98d8e21f84", + "rows": [ + [ + "count", + "75.0", + "75.0" + ], + [ + "mean", + "14.570933333333336", + "4.56" + ], + [ + "std", + "2.728552815774045", + "0.4997296566441995" + ], + [ + "min", + "10.0", + "4.0" + ], + [ + "25%", + "12.34", + "4.0" + ], + [ + "50%", + "14.44", + "5.0" + ], + [ + "75%", + "16.85", + "5.0" + ], + [ + "max", + "19.69", + "5.0" + ] + ], + "shape": { + "columns": 2, + "rows": 8 + } + }, + "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", + "
Price (£)Rating
count75.00000075.00000
mean14.5709334.56000
std2.7285530.49973
min10.0000004.00000
25%12.3400004.00000
50%14.4400005.00000
75%16.8500005.00000
max19.6900005.00000
\n", + "
" + ], + "text/plain": [ + " Price (£) Rating\n", + "count 75.000000 75.00000\n", + "mean 14.570933 4.56000\n", + "std 2.728553 0.49973\n", + "min 10.000000 4.00000\n", + "25% 12.340000 4.00000\n", + "50% 14.440000 5.00000\n", + "75% 16.850000 5.00000\n", + "max 19.690000 5.00000" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "books_df.describe()" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "a6ab78af", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(75, 7)" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "books_df.shape" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "c47dc98f", + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.microsoft.datawrangler.viewer.v0+json": { + "columns": [ + { + "name": "index", + "rawType": "int64", + "type": "integer" + }, + { + "name": "UPC", + "rawType": "object", + "type": "string" + }, + { + "name": "Title", + "rawType": "object", + "type": "string" + }, + { + "name": "Price (£)", + "rawType": "float64", + "type": "float" + }, + { + "name": "Rating", + "rawType": "int64", + "type": "integer" + }, + { + "name": "Genre", + "rawType": "object", + "type": "string" + }, + { + "name": "Availability", + "rawType": "object", + "type": "string" + }, + { + "name": "Description", + "rawType": "object", + "type": "string" + } + ], + "ref": "3f9e06f5-724c-43a4-95a6-e08c3bac2853", + "rows": [ + [ + "31", + "81ef44fcc5f454df", + "One with You (Crossfire #5)", + "15.71", + "4", + "Add a comment", + "In stock (12 available)", + "Gideon Cross. Falling in love with him was the easiest thing I've ever done. It happened instantly. Completely. Irrevocably.Marrying him was a dream come true. Staying married to him is the fight of my life. Love transforms. Ours is both a refuge from the storm and the most violent of tempests. Two damaged souls entwined as one.We have bared our deepest, ugliest secrets to Gideon Cross. Falling in love with him was the easiest thing I've ever done. It happened instantly. Completely. Irrevocably.Marrying him was a dream come true. Staying married to him is the fight of my life. Love transforms. Ours is both a refuge from the storm and the most violent of tempests. Two damaged souls entwined as one.We have bared our deepest, ugliest secrets to one another. Gideon is the mirror that reflects all my flaws ... and all the beauty I couldn't see. He has given me everything. Now, I must prove I can be the rock, the shelter for him that he is for me. Together, we could stand against those who work so viciously to come between us.But our greatest battle may lie within the very vows that give us strength. Committing to love was only the beginning. Fighting for it will either set us free ... or break us apart.Heartbreakingly and seductively poignant, One with You is the breathlessly awaited finale to the Crossfire® saga, the searing love story that has captivated millions of readers worldwide. ...more" + ], + [ + "73", + "29fc016c459aeb14", + "The Edge of Reason (Bridget Jones #2)", + "19.18", + "4", + "Womens Fiction", + "In stock (1 available)", + "Monday 27 January“7:15 a.m. Hurrah! The wilderness years are over. For four weeks and five days now have been in functional relationship with adult male, thereby proving am not love pariah as recently feared.”Lurching from the cappuccino bars of Notting Hill to the blissed-out shores of Thailand, Bridget Jones searches for The Truth in spite of pathetically unevolved men, Monday 27 January“7:15 a.m. Hurrah! The wilderness years are over. For four weeks and five days now have been in functional relationship with adult male, thereby proving am not love pariah as recently feared.”Lurching from the cappuccino bars of Notting Hill to the blissed-out shores of Thailand, Bridget Jones searches for The Truth in spite of pathetically unevolved men, insane dating theories, and Smug Married advice (\"I'm just calling to say in the potty! In the potty! Well, do it in Daddy's hand then!\"). She experiences a zeitgeist-esque Spiritual Epiphany somewhere between the pages of How to Find the Love You Want Without Seeking It (\"can self-help books really help self?\"), protective custody, and a lightly chilled Chardonnay.Wednesday 5 March“7:08 p.m. Am assured, receptive, responsive woman of substance. My sense of self comes not from other people but... from... myself? That can’t be right.”With another devastatingly hilarious, ridiculous, unnervingly accurate take on modern womanhood, Bridget Jones is back. ...more" + ], + [ + "26", + "ac4dde0d1be05de0", + "Far & Away: Places on the Brink of Change: Seven Continents, Twenty-Five Years", + "15.06", + "4", + "Nonfiction", + "In stock (14 available)", + "From the winner of the National Book Award and the National Books Critics’ Circle Award—and one of the most original thinkers of our time—a riveting collection of essays about places in dramatic transition.Far and Away collects Andrew Solomon’s writings about places undergoing seismic shifts—political, cultural, and spiritual. Chronicling his stint on the barricades in Mos From the winner of the National Book Award and the National Books Critics’ Circle Award—and one of the most original thinkers of our time—a riveting collection of essays about places in dramatic transition.Far and Away collects Andrew Solomon’s writings about places undergoing seismic shifts—political, cultural, and spiritual. Chronicling his stint on the barricades in Moscow in 1991, when he joined artists in resisting the coup whose failure ended the Soviet Union, his 2002 account of the rebirth of culture in Afghanistan following the fall of the Taliban, his insightful appraisal of a Myanmar seeped in contradictions as it slowly, fitfully pushes toward freedom, and many other stories of profound upheaval, this book provides a unique window onto the very idea of social change. With his signature brilliance and compassion, Solomon demonstrates both how history is altered by individuals, and how personal identities are altered when governments alter.A journalist and essayist of remarkable perception and prescience, Solomon captures the essence of these cultures. Ranging across seven continents and twenty-five years, Far and Away takes a magnificent journey into the heart of extraordinarily diverse experiences, yet Solomon finds a common humanity wherever he travels. Illuminating the development of his own genius, his stories are always intimate and often both funny and deeply moving. ...more" + ], + [ + "39", + "0345872b14f9e774", + "The Origin of Species", + "10.01", + "4", + "Science", + "In stock (7 available)", + "The publication of Darwin’s The Origin of Species in 1859 marked a dramatic turning point in scientific thought. The volume had taken Darwin more than twenty years to publish, in part because he envisioned the storm of controversy it was certain to unleash. Indeed, selling out its first edition on its first day, The Origin of Species revolutionized science, philosophy, and The publication of Darwin’s The Origin of Species in 1859 marked a dramatic turning point in scientific thought. The volume had taken Darwin more than twenty years to publish, in part because he envisioned the storm of controversy it was certain to unleash. Indeed, selling out its first edition on its first day, The Origin of Species revolutionized science, philosophy, and theology.Darwin’s reasoned, documented arguments carefully advance his theory of natural selection and his assertion that species were not created all at once by a divine hand but started with a few simple forms that mutated and adapted over time. Whether commenting on his own poor health, discussing his experiments to test instinct in bees, or relating a conversation about a South American burrowing rodent, Darwin’s monumental achievement is surprisingly personal and delightfully readable. Its profound ideas remain controversial even today, making it the most influential book in the natural sciences ever written—an important work not just to its time but to the history of humankind. ...more" + ], + [ + "12", + "3bebf34ee9330cbd", + "The Third Wave: An Entrepreneur’s Vision of the Future", + "12.61", + "5", + "Business", + "In stock (15 available)", + "NEW YORK TIMES BESTSELLERWALL STREET JOURNAL BESTSELLEROne of America’s most accomplished entrepreneurs—a pioneer who made the Internet part of everyday life and orchestrated the largest merger in the history of business—shares a roadmap for how anyone can succeed in a world of rapidly changing technology.Steve Case’s career began when he cofounded America Online (AOL) in NEW YORK TIMES BESTSELLERWALL STREET JOURNAL BESTSELLEROne of America’s most accomplished entrepreneurs—a pioneer who made the Internet part of everyday life and orchestrated the largest merger in the history of business—shares a roadmap for how anyone can succeed in a world of rapidly changing technology.Steve Case’s career began when he cofounded America Online (AOL) in 1985. At the time, only three percent of Americans were online. It took a decade for AOL to achieve mainstream success, and there were many near-death experiences and back-to-the-wall pivots. AOL became the top performing company of the 1990s, and at its peak more than half of all consumer Internet traffic in the United States ran through the service. After Case engineered AOL’s merger with Time Warner and he became Chairman of the combined business, Case oversaw the biggest media and communications empire in the world. In The Third Wave, which pays homage to the work of the futurist Alvin Toffler (from whom Case has borrowed the title, and whose work inspired him as a young man), Case takes us behind the scenes of some of the most consequential and riveting business decisions of our time while offering illuminating insights from decades of working as an entrepreneur, an investor, a philanthropist, and an advocate for sensible bipartisan policies. We are entering, as Case explains, a new paradigm called the “Third Wave” of the Internet. The first wave saw AOL and other companies lay the foundation for consumers to connect to the Internet. The second wave saw companies like Google and Facebook build on top of the Internet to create search and social networking capabilities, while apps like Snapchat and Instagram leverage the smartphone revolution. Now, Case argues, we’re entering the Third Wave: a period in which entrepreneurs will vastly transform major “real world” sectors like health, education, transportation, energy, and food—and in the process change the way we live our daily lives. But success in the Third Wave will require a different skill set, and Case outlines the path forward.The Third Wave is part memoir, part manifesto, and part playbook for the future. With passion and clarity, Case explains the ways in which newly emerging technology companies (a growing number of which, he argues, will not be based in Silicon Valley) will have to rethink their relationships with customers, with competitors, and with governments; and offers advice for how entrepreneurs can make winning business decisions and strategies—and how all of us can make sense of this changing digital age. ...more" + ], + [ + "25", + "f201f263d8c23f97", + "Greek Mythic History", + "10.23", + "5", + "Default", + "In stock (14 available)", + "As far back as the fifth century BCE Pherecydes and others attempted to integrate city-state stories into a coherent mythic Greek pre-history. Science unavailable to ancient sources helped guide author Spencer Clevenger to critical insights and intriguing results. In \"Greek Mythic History,\" he weaves myths concerning gods, kings, and heroes into their intended time and pla As far back as the fifth century BCE Pherecydes and others attempted to integrate city-state stories into a coherent mythic Greek pre-history. Science unavailable to ancient sources helped guide author Spencer Clevenger to critical insights and intriguing results. In \"Greek Mythic History,\" he weaves myths concerning gods, kings, and heroes into their intended time and place and offers a concise retelling of Greek myths from a historic perspective. Capitalizing on modern discoveries, Clevenger tells the story in chronological order, starting with the creation of the cosmos and ending in the Dark Ages when poets began to write down their myths and stories. Neither history nor mythology, the stories depict what history might be if the myths were interpreted more literally.With maps and exhibits included, \"Greek Mythic History\" provides a comprehensive retelling of the various Hellenic myths in a logical historical sequence, and places nearly the entire canon into context. ...more" + ], + [ + "72", + "4280ac3eab57aa5d", + "The Girl You Lost", + "12.29", + "5", + "Mystery", + "In stock (1 available)", + "Eighteen years ago your baby daughter was snatched. Today, she came back. A sinister and darkly compelling psychological thriller from the No.1 bestselling author of The Girl With No Past. Eighteen years ago, Simone Porter’s six-month-old daughter, Helena, was abducted. Simone and husband, Matt, have slowly rebuilt their shattered lives, but the pain at losing their child Eighteen years ago your baby daughter was snatched. Today, she came back. A sinister and darkly compelling psychological thriller from the No.1 bestselling author of The Girl With No Past. Eighteen years ago, Simone Porter’s six-month-old daughter, Helena, was abducted. Simone and husband, Matt, have slowly rebuilt their shattered lives, but the pain at losing their child has never left them. Then a young woman, Grace, appears out of the blue and tells Simone she has information about her stolen baby. But just who is Grace – and can Simone trust her? When Grace herself disappears, Simone becomes embroiled in a desperate search for her daughter and the woman who has vital clues about her whereabouts. Simone is inching closer to the truth but it’ll take her into dangerous and disturbing territory. Simone lost her baby. Will she lose her life trying to find her? Read what people are saying about the Number One Bestseller, The Girl With No Past: ‘I read this in a day and found myself totally engaged with the plot. Kathryn Croft has pulled off a very accessible mystery, that exceeded my expectations and shows her talent. The ending was just right! Worth a read if you fancy a well paced mystery, on these dark autumnal nights.’ Northern Crime ‘Kept the tension and mystery going right until the end … An intense read that keeps you turning page after page.’ Crime Book Club ‘Wow! This book grabbed me from the very beginning! … To say this book is a page turner would be an understatement!’ Chat About Books ‘It kept me up all night and cost me my beauty sleep! I will get it out of the way immediately and tell you that this is one of the best thrillers I have read this year and it is fully deserving of my 5-star rating.’ Books Are Man’s Other Best Friend ‘BLIMEY. This book is GRIPPY - I sat and read it over the course of a day and a night, purely because I couldn't put it down.’ Reading Room with a View ‘The reader is kept guessing until the end. It's perfection for a thriller and the author does amazingly to keep our intrigue.’ Chic Toronto ‘Gripping, a real page turner… Excellent plot, and gripping stuff, that keeps the reader guessing until the end … raced to the end to find out what was happening and how it would all end … what a storyteller Kathryn Croft is!’ Emma’s Book Reviews ‘The concept of this book, and the story itself is phenomenal - honestly one of the best i have read, it really does outshine all other thrillers i have read.’ Afternoon Bookery ‘I really enjoyed this from start to finish. It's one of these books where you just HAVE to read JUST a couple more pages to see what is going to happen next. The author is very good at building suspense and revealing details bit by bit. It was totally unpredictable and had some very good twists. ...more" + ], + [ + "66", + "5dbd6ec4e154ad2f", + "A Visit from the Goon Squad", + "14.08", + "5", + "Default", + "In stock (3 available)", + "Bennie is an aging former punk rocker and record executive. Sasha is the passionate, troubled young woman he employs. Here Jennifer Egan brilliantly reveals their pasts, along with the inner lives of a host of other characters whose paths intersect with theirs. With music pulsing on every page, A Visit from the Goon Squad is a startling, exhilarating novel of self-destruct Bennie is an aging former punk rocker and record executive. Sasha is the passionate, troubled young woman he employs. Here Jennifer Egan brilliantly reveals their pasts, along with the inner lives of a host of other characters whose paths intersect with theirs. With music pulsing on every page, A Visit from the Goon Squad is a startling, exhilarating novel of self-destruction and redemption. ...more" + ], + [ + "28", + "94a958ea126cdcd5", + "Dear Mr. Knightley", + "11.21", + "5", + "Fiction", + "In stock (14 available)", + "Dear Mr. Knightley is a contemporary epistolary novel with a delightful dash of Jane Austen.Samantha Moore survived years of darkness in the foster care system by hiding behind her favorite characters in literature, even adopting their very words. Her fictional friends give her an identity, albeit a borrowed one. But most importantly, they protect her from revealing her tr Dear Mr. Knightley is a contemporary epistolary novel with a delightful dash of Jane Austen.Samantha Moore survived years of darkness in the foster care system by hiding behind her favorite characters in literature, even adopting their very words. Her fictional friends give her an identity, albeit a borrowed one. But most importantly, they protect her from revealing her true self and encountering more pain.After college, Samantha receives an extraordinary opportunity. The anonymous “Mr. Knightley” offers her a full scholarship to earn her graduate degree at the prestigious Medill School of Journalism. The sole condition is that Sam write to Mr. Knightley regularly to keep him apprised of her progress.As Sam’s true identity begins to reveal itself through her letters, her heart begins to soften to those around her—a damaged teenager and fellow inhabitant of Grace House, her classmates at Medill, and, most powerfully, successful novelist Alex Powell. But just as Sam finally begins to trust, she learns that Alex has secrets of his own—secrets that, for better or for worse, make it impossible for Sam to hide behind either her characters or her letters. ...more" + ], + [ + "14", + "ca71e72655bece85", + "Something More Than This", + "16.24", + "4", + "Romance", + "In stock (15 available)", + "Katy Lewis has it all: a sports reporting job she loves, a great roommate, and two brothers who, while nosy, always have her back. But when Conner Roberts, Katy’s unrequited first crush, suddenly shows up—and shows interest—after nine years, she reverts to a sweaty, panicked sixteen-year-old once more.And if trying to read Conner’s signals isn’t tough enough, Katy’s heart Katy Lewis has it all: a sports reporting job she loves, a great roommate, and two brothers who, while nosy, always have her back. But when Conner Roberts, Katy’s unrequited first crush, suddenly shows up—and shows interest—after nine years, she reverts to a sweaty, panicked sixteen-year-old once more.And if trying to read Conner’s signals isn’t tough enough, Katy’s heart is sending some mixed messages of its own. When a beautiful blonde coworker starts pursuing Katy’s boss, Dylan Sterling—her longtime mentor and friend—she realizes she may have a problem with that. A reunion with Conner is what she’s dreamed of for so long…so why can’t she stop thinking about Dylan?For the first time ever, Katy must fact-check her heart. Should she go after the guy she thought she always wanted or see if there’s something more with the one who’s been there all along? ...more" + ] + ], + "shape": { + "columns": 7, + "rows": 10 + } + }, + "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", + "
UPCTitlePrice (£)RatingGenreAvailabilityDescription
3181ef44fcc5f454dfOne with You (Crossfire #5)15.714Add a commentIn stock (12 available)Gideon Cross. Falling in love with him was the...
7329fc016c459aeb14The Edge of Reason (Bridget Jones #2)19.184Womens FictionIn stock (1 available)Monday 27 January“7:15 a.m. Hurrah! The wild...
26ac4dde0d1be05de0Far & Away: Places on the Brink of Change: Sev...15.064NonfictionIn stock (14 available)From the winner of the National Book Award and...
390345872b14f9e774The Origin of Species10.014ScienceIn stock (7 available)The publication of Darwin’s The Origin of Sp...
123bebf34ee9330cbdThe Third Wave: An Entrepreneur’s Vision of ...12.615BusinessIn stock (15 available)NEW YORK TIMES BESTSELLERWALL STREET JOURNAL B...
25f201f263d8c23f97Greek Mythic History10.235DefaultIn stock (14 available)As far back as the fifth century BCE Pherecyde...
724280ac3eab57aa5dThe Girl You Lost12.295MysteryIn stock (1 available)Eighteen years ago your baby daughter was snat...
665dbd6ec4e154ad2fA Visit from the Goon Squad14.085DefaultIn stock (3 available)Bennie is an aging former punk rocker and reco...
2894a958ea126cdcd5Dear Mr. Knightley11.215FictionIn stock (14 available)Dear Mr. Knightley is a contemporary epistolar...
14ca71e72655bece85Something More Than This16.244RomanceIn stock (15 available)Katy Lewis has it all: a sports reporting job ...
\n", + "
" + ], + "text/plain": [ + " UPC Title \\\n", + "31 81ef44fcc5f454df One with You (Crossfire #5) \n", + "73 29fc016c459aeb14 The Edge of Reason (Bridget Jones #2) \n", + "26 ac4dde0d1be05de0 Far & Away: Places on the Brink of Change: Sev... \n", + "39 0345872b14f9e774 The Origin of Species \n", + "12 3bebf34ee9330cbd The Third Wave: An Entrepreneur’s Vision of ... \n", + "25 f201f263d8c23f97 Greek Mythic History \n", + "72 4280ac3eab57aa5d The Girl You Lost \n", + "66 5dbd6ec4e154ad2f A Visit from the Goon Squad \n", + "28 94a958ea126cdcd5 Dear Mr. Knightley \n", + "14 ca71e72655bece85 Something More Than This \n", + "\n", + " Price (£) Rating Genre Availability \\\n", + "31 15.71 4 Add a comment In stock (12 available) \n", + "73 19.18 4 Womens Fiction In stock (1 available) \n", + "26 15.06 4 Nonfiction In stock (14 available) \n", + "39 10.01 4 Science In stock (7 available) \n", + "12 12.61 5 Business In stock (15 available) \n", + "25 10.23 5 Default In stock (14 available) \n", + "72 12.29 5 Mystery In stock (1 available) \n", + "66 14.08 5 Default In stock (3 available) \n", + "28 11.21 5 Fiction In stock (14 available) \n", + "14 16.24 4 Romance In stock (15 available) \n", + "\n", + " Description \n", + "31 Gideon Cross. Falling in love with him was the... \n", + "73 Monday 27 January“7:15 a.m. Hurrah! The wild... \n", + "26 From the winner of the National Book Award and... \n", + "39 The publication of Darwin’s The Origin of Sp... \n", + "12 NEW YORK TIMES BESTSELLERWALL STREET JOURNAL B... \n", + "25 As far back as the fifth century BCE Pherecyde... \n", + "72 Eighteen years ago your baby daughter was snat... \n", + "66 Bennie is an aging former punk rocker and reco... \n", + "28 Dear Mr. Knightley is a contemporary epistolar... \n", + "14 Katy Lewis has it all: a sports reporting job ... " + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "books_df.sample(10)" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "e3d7980a", + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.microsoft.datawrangler.viewer.v0+json": { + "columns": [ + { + "name": "index", + "rawType": "int64", + "type": "integer" + }, + { + "name": "UPC", + "rawType": "object", + "type": "string" + }, + { + "name": "Title", + "rawType": "object", + "type": "string" + }, + { + "name": "Price (£)", + "rawType": "float64", + "type": "float" + }, + { + "name": "Rating", + "rawType": "int64", + "type": "integer" + }, + { + "name": "Genre", + "rawType": "object", + "type": "string" + }, + { + "name": "Availability", + "rawType": "object", + "type": "string" + }, + { + "name": "Description", + "rawType": "object", + "type": "string" + } + ], + "ref": "e8b2239c-0c4a-4d9f-b5c1-ccb34fd002f9", + "rows": [ + [ + "52", + "b54d7416bb445989", + "Booked", + "17.49", + "5", + "Poetry", + "In stock (5 available)", + "Like lightning/you strike/fast and free/legs zoom/down field/eyes fixed/on the checkered ball/on the goal/ten yards to go/can’t nobody stop you/can’t nobody cop you… In this follow-up to the Newbery-winning novel THE CROSSOVER, soccer, family, love, and friendship, take center stage as twelve-year-old Nick learns the power of words as he wrestles with problems at home, sta Like lightning/you strike/fast and free/legs zoom/down field/eyes fixed/on the checkered ball/on the goal/ten yards to go/can’t nobody stop you/can’t nobody cop you… In this follow-up to the Newbery-winning novel THE CROSSOVER,  soccer, family, love, and friendship, take center stage as twelve-year-old Nick learns the power of words as he wrestles with problems at home, stands up to a bully, and tries to impress the girl of his dreams. Helping him along are his best friend and sometimes teammate Coby, and The Mac, a rapping librarian who gives Nick inspiring books to read.   This electric and heartfelt novel-in-verse by poet Kwame Alexander bends and breaks as it captures all the thrills and setbacks, action and emotion of a World Cup match! ...more" + ], + [ + "49", + "c4182bdb53e2459a", + "The Darkest Corners", + "11.33", + "5", + "Young Adult", + "In stock (5 available)", + "The Darkest Corners is a psychological thriller about the lies little girls tell, and the deadly truths those lies become.There are ghosts around every corner in Fayette, Pennsylvania. Tessa left when she was nine and has been trying ever since not to think about it after what happened there that last summer. Memories of things so dark will burn themselves into your mind i The Darkest Corners is a psychological thriller about the lies little girls tell, and the deadly truths those lies become.There are ghosts around every corner in Fayette, Pennsylvania. Tessa left when she was nine and has been trying ever since not to think about it after what happened there that last summer. Memories of things so dark will burn themselves into your mind if you let them.Callie never left. She moved to another house, so she doesn’t have to walk those same halls, but then Callie always was the stronger one. She can handle staring into the faces of her demons—and if she parties hard enough, maybe one day they’ll disappear for good.Tessa and Callie have never talked about what they saw that night. After the trial, Callie drifted and Tessa moved, and childhood friends just have a way of losing touch.But ever since she left, Tessa has had questions. Things have never quite added up. And now she has to go back to Fayette—to Wyatt Stokes, sitting on death row; to Lori Cawley, Callie’s dead cousin; and to the one other person who may be hiding the truth.Only the closer Tessa gets to the truth, the closer she gets to a killer—and this time, it won’t be so easy to run away. ...more" + ], + [ + "3", + "657fe5ead67a7767", + "Untitled Collection: Sabbath Poems 2014", + "14.27", + "4", + "Poetry", + "In stock (16 available)", + "More than thirty-five years ago, when the weather allowed, Wendell Berry began spending his sabbaths outdoors, walking and wandering around familiar territory, seeking a deep intimacy only time could provide. These walks arranged themselves into poems and each year since he has completed a sequence dated by the year of its composition. Last year we collected the lot into a More than thirty-five years ago, when the weather allowed, Wendell Berry began spending his sabbaths outdoors, walking and wandering around familiar territory, seeking a deep intimacy only time could provide. These walks arranged themselves into poems and each year since he has completed a sequence dated by the year of its composition. Last year we collected the lot into a collection, This Day, the Sabbath Poems 1979-2013. This new sequence for the following year is one of the richest yet. This group provides a virtual syllabus for all of Mr. Berry’s cultural and agricultural work in concentrated form. Many of these poems are drawn from the view from a small porch in the woods, a place of stillness and reflection, a vantage point “of the one/life of the forest composed/of uncountable lives in countless/years each life coherent itself within/ the coherence, the great composure,/of all.” A new collection of Wendell Berry poems is always an occasion of joyful celebration and this one is especially so. ...more" + ], + [ + "9", + "72f9d5be3472d34e", + "Mama Tried: Traditional Italian Cooking for the Screwed, Crude, Vegan, and Tattooed", + "14.02", + "4", + "Food and Drink", + "In stock (16 available)", + "Cecilia Granata grew up cooking with her family in Italy. As a vegan, she learned to adapt her favorite recipes from around the country to be animal free while retaining the flavor and feeling of true Italian home cooking. She shares her commitment to ethical and artful eating in this alphabetically-arranged volume with over 100 recipes, ranging from traditional favorites Cecilia Granata grew up cooking with her family in Italy. As a vegan, she learned to adapt her favorite recipes from around the country to be animal free while retaining the flavor and feeling of true Italian home cooking. She shares her commitment to ethical and artful eating in this alphabetically-arranged volume with over 100 recipes, ranging from traditional favorites to homemade liqueurs to aphrodisiacs—all \"senza sofferenza,\" without suffering. The recipes are lushly illustrated with Granata's food-inspired tattoo art. ...more" + ], + [ + "57", + "5de4baa88061a77a", + "Outlander (Outlander #1)", + "19.67", + "5", + "Default", + "In stock (4 available)", + "The year is 1945. Claire Randall, a former combat nurse, is just back from the war and reunited with her husband on a second honeymoon when she walks through a standing stone in one of the ancient circles that dot the British Isles. Suddenly she is a Sassenach—an “outlander”—in a Scotland torn by war and raiding border clans in the year of Our Lord...1743.Hurled back in ti The year is 1945. Claire Randall, a former combat nurse, is just back from the war and reunited with her husband on a second honeymoon when she walks through a standing stone in one of the ancient circles that dot the British Isles. Suddenly she is a Sassenach—an “outlander”—in a Scotland torn by war and raiding border clans in the year of Our Lord...1743.Hurled back in time by forces she cannot understand, Claire is catapulted into the intrigues of lairds and spies that may threaten her life, and shatter her heart. For here James Fraser, a gallant young Scots warrior, shows her a love so absolute that Claire becomes a woman torn between fidelity and desire—and between two vastly different men in two irreconcilable lives. ...more" + ], + [ + "27", + "1d6dd0c87d90fe92", + "Eight Hundred Grapes", + "14.39", + "4", + "Fiction", + "In stock (14 available)", + "There are secrets you share, and secrets you hide…Growing up on her family’s Sonoma vineyard, Georgia Ford learned some important secrets. The secret number of grapes it takes to make a bottle of wine: eight hundred. The secret ingredient in her mother’s lasagna: chocolate. The secret behind ending a fight: hold hands.But just a week before her wedding, thirty-year-old Geo There are secrets you share, and secrets you hide…Growing up on her family’s Sonoma vineyard, Georgia Ford learned some important secrets. The secret number of grapes it takes to make a bottle of wine: eight hundred. The secret ingredient in her mother’s lasagna: chocolate. The secret behind ending a fight: hold hands.But just a week before her wedding, thirty-year-old Georgia discovers her beloved fiancé has been keeping a secret so explosive, it will change their lives forever.Georgia does what she’s always done: she returns to the family vineyard, expecting the comfort of her long-married parents, and her brothers, and everything familiar. But it turns out her fiancé is not the only one who’s been keeping secrets… ...more" + ], + [ + "36", + "ee6c67859d70186b", + "NaNo What Now? Finding your editing process, revising your NaNoWriMo book and building a writing career through publishing and beyond", + "10.41", + "4", + "Default", + "In stock (9 available)", + "You’ve just completed a novel during the National Novel Writing Month challenge! Or maybe you completed part of one. Or signed up with really good intentions and then only wrote a couple of words. Either way, you’re staring at 30 days worth of words and wondering… What now? How exactly do you start a revision and discover your editing process? How do you know if you’re rea You’ve just completed a novel during the National Novel Writing Month challenge! Or maybe you completed part of one. Or signed up with really good intentions and then only wrote a couple of words. Either way, you’re staring at 30 days worth of words and wondering… What now? How exactly do you start a revision and discover your editing process? How do you know if you’re ready to hire an editor? How do you motivate yourself when faced with draft dread or editing blocks? How can you translate what you’ve accomplished so far into a professional writing career? From tips for finding beta readers, exploration of traditional vs. self-publishing, and strategies to motivate yourself to keep writing regularly post-NaNoWriMo, NaNo What Now? is a quick and easy-to-read unofficial guide to the next steps. In a sea of general writing advice, NaNo ML and multi-year veteran Hillary DePiano offers practical and specific solutions tailored to the unique nature of the NaNoWriMo challenge and holds your hand through the rest of the journey. It’s time to finish what you started and make your book the best it can be. ...more" + ], + [ + "44", + "72b5355dda190b6a", + "The Hobbit (Middle-Earth Universe)", + "17.8", + "5", + "Default", + "In stock (6 available)", + "In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a hobbit-hole, and that means comfort.Written for J.R.R. Tolkien’s own children, The Hobbit met with instant critical acclaim when it was first published in 1937. Now In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a hobbit-hole, and that means comfort.Written for J.R.R. Tolkien’s own children, The Hobbit met with instant critical acclaim when it was first published in 1937. Now recognized as a timeless classic, this introduction to the hobbit Bilbo Baggins, the wizard Gandalf, Gollum, and the spectacular world of Middle-earth recounts of the adventures of a reluctant hero, a powerful and dangerous ring, and the cruel dragon Smaug the Magnificent. The text in this 372-page paperback edition is based on that first published in Great Britain by Collins Modern Classics (1998), and includes a note on the text by Douglas A. Anderson (2001). Unforgettable! ...more" + ], + [ + "6", + "0fa6dceead7ce47a", + "Princess Jellyfish 2-in-1 Omnibus, Vol. 01 (Princess Jellyfish 2-in-1 Omnibus #1)", + "13.61", + "5", + "Sequential Art", + "In stock (16 available)", + "THE LONG-AWAITED STORY OF FANGIRLS TAKING ON TOKYO!Special large-size 2-in-1 edition of over 400 pages!\"One of the best anime and manga for beginners. Enthusiasm - geeky and otherwise - is power in Princess Jellyfish. Enthusiasm saves the day and paves the road to the future.\" - Kotaku\"Princess Jellyfish's ambition is simple: to tell a delightful story in a delightful way. THE LONG-AWAITED STORY OF FANGIRLS TAKING ON TOKYO!Special large-size 2-in-1 edition of over 400 pages!\"One of the best anime and manga for beginners. Enthusiasm - geeky and otherwise - is power in Princess Jellyfish. Enthusiasm saves the day and paves the road to the future.\" - Kotaku\"Princess Jellyfish's ambition is simple: to tell a delightful story in a delightful way... It's a pretty deadly one-two punch.\" - Anime News Network\"Loaded with heart, soul, humor and insight.\" - About.comSTINGING BEAUTY Tsukimi Kurashita has a strange fascination with jellyfish. She’s loved them from a young age and has carried that love with her to her new life in the big city of Tokyo. There, she resides in Amamizukan, a safe-haven for girl geeks who regularly gush over a range of things from trains to Japanese dolls. However, a chance meeting at a pet shop has Tsukimi crossing paths with one of the things that the residents of Amamizukan have been desperately trying to avoid—a beautiful and fashionable woman! But there’s much more to this woman than her trendy clothes! This odd encounter is only the beginning of a new and unexpected path for Tsukimi and her friends. ...more" + ], + [ + "63", + "621e2c310cec8d32", + "Green Eggs and Ham (Beginner Books B-16)", + "10.79", + "4", + "Childrens", + "In stock (3 available)", + "“Do you like green eggs and ham?” asks Sam-I-am in this Beginner Book by Dr. Seuss. In a house or with a mouse? In a boat or with a goat? On a train or in a tree? Sam keeps asking persistently. With unmistakable characters and signature rhymes, Dr. Seuss’s beloved favorite has cemented its place as a children’s classic. In this most famous of cumulative tales, the list of “Do you like green eggs and ham?” asks Sam-I-am in this Beginner Book by Dr. Seuss. In a house or with a mouse? In a boat or with a goat? On a train or in a tree? Sam keeps asking persistently. With unmistakable characters and signature rhymes, Dr. Seuss’s beloved favorite has cemented its place as a children’s classic. In this most famous of cumulative tales, the list of places to enjoy green eggs and ham, and friends to enjoy them with, gets longer and longer. Follow Sam-I-am as he insists that this unusual treat is indeed a delectable snack to be savored everywhere and in every way. Originally created by Dr. Seuss, Beginner Books encourage children to read all by themselves, with simple words and illustrations that give clues to their meaning. ...more" + ] + ], + "shape": { + "columns": 7, + "rows": 10 + } + }, + "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", + "
UPCTitlePrice (£)RatingGenreAvailabilityDescription
52b54d7416bb445989Booked17.495PoetryIn stock (5 available)Like lightning/you strike/fast and free/legs z...
49c4182bdb53e2459aThe Darkest Corners11.335Young AdultIn stock (5 available)The Darkest Corners is a psychological thrille...
3657fe5ead67a7767Untitled Collection: Sabbath Poems 201414.274PoetryIn stock (16 available)More than thirty-five years ago, when the weat...
972f9d5be3472d34eMama Tried: Traditional Italian Cooking for th...14.024Food and DrinkIn stock (16 available)Cecilia Granata grew up cooking with her famil...
575de4baa88061a77aOutlander (Outlander #1)19.675DefaultIn stock (4 available)The year is 1945. Claire Randall, a former com...
271d6dd0c87d90fe92Eight Hundred Grapes14.394FictionIn stock (14 available)There are secrets you share, and secrets you h...
36ee6c67859d70186bNaNo What Now? Finding your editing process, r...10.414DefaultIn stock (9 available)You’ve just completed a novel during the Nat...
4472b5355dda190b6aThe Hobbit (Middle-Earth Universe)17.805DefaultIn stock (6 available)In a hole in the ground there lived a hobbit. ...
60fa6dceead7ce47aPrincess Jellyfish 2-in-1 Omnibus, Vol. 01 (Pr...13.615Sequential ArtIn stock (16 available)THE LONG-AWAITED STORY OF FANGIRLS TAKING ON T...
63621e2c310cec8d32Green Eggs and Ham (Beginner Books B-16)10.794ChildrensIn stock (3 available)“Do you like green eggs and ham?” asks Sam...
\n", + "
" + ], + "text/plain": [ + " UPC Title \\\n", + "52 b54d7416bb445989 Booked \n", + "49 c4182bdb53e2459a The Darkest Corners \n", + "3 657fe5ead67a7767 Untitled Collection: Sabbath Poems 2014 \n", + "9 72f9d5be3472d34e Mama Tried: Traditional Italian Cooking for th... \n", + "57 5de4baa88061a77a Outlander (Outlander #1) \n", + "27 1d6dd0c87d90fe92 Eight Hundred Grapes \n", + "36 ee6c67859d70186b NaNo What Now? Finding your editing process, r... \n", + "44 72b5355dda190b6a The Hobbit (Middle-Earth Universe) \n", + "6 0fa6dceead7ce47a Princess Jellyfish 2-in-1 Omnibus, Vol. 01 (Pr... \n", + "63 621e2c310cec8d32 Green Eggs and Ham (Beginner Books B-16) \n", + "\n", + " Price (£) Rating Genre Availability \\\n", + "52 17.49 5 Poetry In stock (5 available) \n", + "49 11.33 5 Young Adult In stock (5 available) \n", + "3 14.27 4 Poetry In stock (16 available) \n", + "9 14.02 4 Food and Drink In stock (16 available) \n", + "57 19.67 5 Default In stock (4 available) \n", + "27 14.39 4 Fiction In stock (14 available) \n", + "36 10.41 4 Default In stock (9 available) \n", + "44 17.80 5 Default In stock (6 available) \n", + "6 13.61 5 Sequential Art In stock (16 available) \n", + "63 10.79 4 Childrens In stock (3 available) \n", + "\n", + " Description \n", + "52 Like lightning/you strike/fast and free/legs z... \n", + "49 The Darkest Corners is a psychological thrille... \n", + "3 More than thirty-five years ago, when the weat... \n", + "9 Cecilia Granata grew up cooking with her famil... \n", + "57 The year is 1945. Claire Randall, a former com... \n", + "27 There are secrets you share, and secrets you h... \n", + "36 You’ve just completed a novel during the Nat... \n", + "44 In a hole in the ground there lived a hobbit. ... \n", + "6 THE LONG-AWAITED STORY OF FANGIRLS TAKING ON T... \n", + "63 “Do you like green eggs and ham?” asks Sam... " + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "books_df.sample(10)" ] } ], @@ -126,7 +1549,7 @@ "provenance": [] }, "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "anaconda-2025.12-py3.13", "language": "python", "name": "python3" }, @@ -140,7 +1563,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.13" + "version": "3.13.9" } }, "nbformat": 4,