{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Data Analytics for the Corpus\n", "\n", "## Author: Amittai Siavava" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Load the CSV metadata" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "from datasets import load_dataset\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "from collections import Counter\n" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | id | \n", "year | \n", "title | \n", "url | \n", "text | \n", "__index_level_0__ | \n", "
---|---|---|---|---|---|---|
0 | \n", "0 | \n", "2023.0 | \n", "\"MIT Technology Review\" | \n", "\"https://www.technologyreview.com\" | \n", "\"Featured Topics Newsletters Events Podcasts F... | \n", "0 | \n", "
1 | \n", "1 | \n", "2023.0 | \n", "\"WIRED - The Latest in Technology, Science, Cu... | \n", "\"https://www.wired.com\" | \n", "\"Open Navigation Menu To revisit this article,... | \n", "1 | \n", "
2 | \n", "2 | \n", "2019.0 | \n", "\"The Verge\" | \n", "\"https://www.theverge.com\" | \n", "\"The Verge homepage The Verge The Verge logo.\\... | \n", "2 | \n", "
3 | \n", "3 | \n", "2023.0 | \n", "\"TechCrunch | Startup and Technology News\" | \n", "\"https://www.techcrunch.com\" | \n", "\"WeWork reportedly on the verge of filing for ... | \n", "3 | \n", "
4 | \n", "4 | \n", "2022.0 | \n", "\"A new vision of artificial intelligence for t... | \n", "\"https://www.technologyreview.com/2022/04/22/1... | \n", "\"Featured Topics Newsletters Events Podcasts A... | \n", "4 | \n", "