{ "cells": [ { "cell_type": "markdown", "id": "953025b1", "metadata": {}, "source": [ "# Open-Access Journals — DOAJ Directory\n", "\n", "Starter notebook for the Kaggle dataset in this folder. It loads `doaj_journals.csv` with pandas and walks through quality checks and a first piece of analysis.\n", "\n", "**Files:** `doaj_journals.csv`, `data_dictionary.csv`." ] }, { "cell_type": "markdown", "id": "0000f7f2", "metadata": {}, "source": [ "## 1. Load the data" ] }, { "cell_type": "code", "id": "24558ab8", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "import pandas as pd\n", "\n", "df = pd.read_csv(\"doaj_journals.csv\", low_memory=False)\n", "print(df.shape)" ] }, { "cell_type": "markdown", "id": "325de123", "metadata": {}, "source": [ "## 2. Shape, types and missing values" ] }, { "cell_type": "code", "id": "6eb42bc8", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "print(f\"{df.shape[0]:,} rows x {df.shape[1]} columns\")\n", "\n", "missing = df.isna().mean().mul(100).sort_values(ascending=False)\n", "missing[missing > 0].round(1).to_frame(\"missing_%\").head(15)" ] }, { "cell_type": "markdown", "id": "f2d963fe", "metadata": {}, "source": [ "## 3. Numeric summary" ] }, { "cell_type": "code", "id": "aa2f8fd4", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df.describe(include='number').T.round(2).head(20)" ] }, { "cell_type": "markdown", "id": "5674a9cb", "metadata": {}, "source": [ "## 4. Journals by country" ] }, { "cell_type": "code", "id": "37167684", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df[\"country\"].value_counts().head(15).to_frame(\"journals\")" ] }, { "cell_type": "markdown", "id": "cd262574", "metadata": {}, "source": [ "## 5. APC presence" ] }, { "cell_type": "code", "id": "b53ff95d", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df[\"has_apc\"].value_counts(normalize=True).mul(100).round(1)" ] }, { "cell_type": "markdown", "id": "cfd41f7a", "metadata": {}, "source": [ "## 6. Licence mix" ] }, { "cell_type": "code", "id": "c5c61168", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df[\"license_attributes\"].dropna().str.split(\";\").explode().str.strip().value_counts().head(10)" ] }, { "cell_type": "markdown", "id": "60b6519b", "metadata": {}, "source": [ "## 7. Publication speed" ] }, { "cell_type": "code", "id": "f77c3a3c", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df[\"weeks_to_publication_numeric\"].dropna().clip(upper=52).hist(bins=30, figsize=(8, 4))" ] }, { "cell_type": "markdown", "id": "472a1cee", "metadata": {}, "source": [ "## 8. Policy coverage" ] }, { "cell_type": "code", "id": "cbbcf90d", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "for c in [\"has_preservation\", \"has_deposit_policy\", \"has_persistent_identifier\", \"has_plagiarism_policy\"]:\n", " print(c, round((df[c].astype(str).str.lower() == \"true\").mean() * 100, 1), \"%\")" ] }, { "cell_type": "markdown", "id": "6e43770c", "metadata": {}, "source": [ "## Next steps\n", "\n", "See `KAGGLE.md` for analysis ideas, caveats and provenance." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "name": "python", "version": "3.11", "mimetype": "text/x-python", "file_extension": ".py", "codemirror_mode": { "name": "ipython", "version": 3 }, "pygments_lexer": "ipython3", "nbconvert_exporter": "python" } }, "nbformat": 4, "nbformat_minor": 5 }