{ "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", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idyeartitleurltext__index_level_0__
002023.0\"MIT Technology Review\"\"https://www.technologyreview.com\"\"Featured Topics Newsletters Events Podcasts F...0
112023.0\"WIRED - The Latest in Technology, Science, Cu...\"https://www.wired.com\"\"Open Navigation Menu To revisit this article,...1
222019.0\"The Verge\"\"https://www.theverge.com\"\"The Verge homepage The Verge The Verge logo.\\...2
332023.0\"TechCrunch | Startup and Technology News\"\"https://www.techcrunch.com\"\"WeWork reportedly on the verge of filing for ...3
442022.0\"A new vision of artificial intelligence for t...\"https://www.technologyreview.com/2022/04/22/1...\"Featured Topics Newsletters Events Podcasts A...4
\n", "
" ], "text/plain": [ " id year title \\\n", "0 0 2023.0 \"MIT Technology Review\" \n", "1 1 2023.0 \"WIRED - The Latest in Technology, Science, Cu... \n", "2 2 2019.0 \"The Verge\" \n", "3 3 2023.0 \"TechCrunch | Startup and Technology News\" \n", "4 4 2022.0 \"A new vision of artificial intelligence for t... \n", "\n", " url \\\n", "0 \"https://www.technologyreview.com\" \n", "1 \"https://www.wired.com\" \n", "2 \"https://www.theverge.com\" \n", "3 \"https://www.techcrunch.com\" \n", "4 \"https://www.technologyreview.com/2022/04/22/1... \n", "\n", " text __index_level_0__ \n", "0 \"Featured Topics Newsletters Events Podcasts F... 0 \n", "1 \"Open Navigation Menu To revisit this article,... 1 \n", "2 \"The Verge homepage The Verge The Verge logo.\\... 2 \n", "3 \"WeWork reportedly on the verge of filing for ... 3 \n", "4 \"Featured Topics Newsletters Events Podcasts A... 4 " ] }, "execution_count": 25, "metadata": {}, "output_type": "execute_result" } ], "source": [ "dataset = load_dataset(\"siavava/ai-tech-articles\")\n", "# convert to pandas, use id as index\n", "df = dataset[\"train\"].to_pandas()\n", "df.head(5)\n" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAGdCAYAAAA44ojeAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8pXeV/AAAACXBIWXMAAA9hAAAPYQGoP6dpAAAoHElEQVR4nO3dcVDU953/8dcK6yoGqODJshUTekcyl4JNTlMi3lVaYa0nsRnvzk710lzHu9Iz0lJ0vFB/N65pAsabKDc49WLPUS8OQ28m4c6Z2sjaNuQ8ksaQOBVzl2um1EbLhjtDWAx02cDn/sj4/d0CIisLfNDnY2Yn2c/3/f18P9+8+YYX32VZlzHGCAAAwCKzpnsBAAAAwxFQAACAdQgoAADAOgQUAABgHQIKAACwDgEFAABYh4ACAACsQ0ABAADWSZ7uBdyMoaEh/eY3v1FqaqpcLtd0LwcAAIyDMUa9vb3y+XyaNWvseyQzMqD85je/UU5OznQvAwAA3IR3331XixYtGrNmRgaU1NRUSR+fYFpa2pi10WhUzc3N8vv9crvdU7E8XAe9sAe9sAe9sAe9mHzhcFg5OTnO9/GxzMiAcu1lnbS0tHEFlJSUFKWlpfEFN83ohT3ohT3ohT3oxd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": {}, "output_type": "display_data" } ], "source": [ "data = np.array(df)\n", "years = data[:, 1]\n", "\n", "# get unique years\n", "unique_years = np.unique(years)\n", "\n", "# get counts\n", "counts = np.array([np.sum(years == year) for year in unique_years])\n", "\n", "plt.bar(unique_years, counts, label=\"Total\")\n", "plt.grid()\n", "plt.show()\n" ] } ], "metadata": { "interpreter": { "hash": "607b7d84c7d8e26dbbffb4014e40424fe2faf80a09a85d717e93e42c2773dc40" }, "kernelspec": { "display_name": "Python 3.10.4 ('ml')", "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.5" }, "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 }