{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "# EDA for cleaned arXiv dataset" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## Imports" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## Which subject tag occurs the most frequently our 175k dataset?" ] }, { "cell_type": "code", "execution_count": 2, "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", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Accelerator PhysicsAdaptation and Self-Organizing SystemsAlgebraic GeometryAlgebraic TopologyAnalysis of PDEsApplicationsApplied PhysicsArtificial IntelligenceAstrophysicsAstrophysics of Galaxies...Strongly Correlated ElectronsSubcellular ProcessesSuperconductivitySymbolic ComputationSymplectic GeometrySystems and ControlTheoretical EconomicsTissues and OrgansTrading and Market MicrostructureUNK
0FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse...FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse
1FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse...FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse
2FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse...FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse
3FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse...FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse
4FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse...FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse
\n", "

5 rows × 150 columns

\n", "
" ], "text/plain": [ " Accelerator Physics Adaptation and Self-Organizing Systems \\\n", "0 False False \n", "1 False False \n", "2 False False \n", "3 False False \n", "4 False False \n", "\n", " Algebraic Geometry Algebraic Topology Analysis of PDEs Applications \\\n", "0 False False False False \n", "1 False False False False \n", "2 False False False False \n", "3 False False False False \n", "4 False False False False \n", "\n", " Applied Physics Artificial Intelligence Astrophysics \\\n", "0 False False False \n", "1 False False False \n", "2 False False False \n", "3 False False False \n", "4 False False False \n", "\n", " Astrophysics of Galaxies ... Strongly Correlated Electrons \\\n", "0 False ... False \n", "1 False ... False \n", "2 False ... False \n", "3 False ... False \n", "4 False ... False \n", "\n", " Subcellular Processes Superconductivity Symbolic Computation \\\n", "0 False False False \n", "1 False False False \n", "2 False False False \n", "3 False False False \n", "4 False False False \n", "\n", " Symplectic Geometry Systems and Control Theoretical Economics \\\n", "0 False False False \n", "1 False False False \n", "2 False False False \n", "3 False False False \n", "4 False False False \n", "\n", " Tissues and Organs Trading and Market Microstructure UNK \n", "0 False False False \n", "1 False False False \n", "2 False False False \n", "3 False False False \n", "4 False False False \n", "\n", "[5 rows x 150 columns]" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "cats = pd.read_parquet('./data/arXiv_cat.parquet')\n", "cats.head()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Analysis of PDEs 18944\n", "Combinatorics 18930\n", "Optimization and Control 18284\n", "Mathematical Physics 16381\n", "Probability 15343\n", "dtype: int64" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "## Calculate the number of times each tag appears\n", "\n", "totals = cats.sum(axis=0).sort_values(ascending=False)\n", "totals.head()" ] }, { "cell_type": "code", "execution_count": 5, "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", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
raw_titleclean_titlehyph_in_titleraw_abstractclean_abstracthyph_in_abstractauthors_parsedcatupdate_dateid
42The Prolongation Problem for the Heavenly Equa...The Prolongation Problem for the Heavenly Equa...NoneWe provide an exact regular solution of an o...We provide an exact regular solution of an o...None[['Palese', 'M.', '', 'Dept. Math. Univ. of To...[math.AP, math-ph, math.MP]2022-09-21math/0311218
55Null Controllability for a Degenerate Structur...Null Controllability for a Degenerate Structur...NoneIn this paper, we consider the infinite dime...In this paper, we consider the infinite dime...[final-state][['Simporé', 'Yacouba', ''], ['gantouh', 'Yass...[math.OC, math.AP]2022-09-092209.03645
59Voting models and semilinear parabolic equationsVoting models and semilinear parabolic equationsNoneWe present probabilistic interpretations of ...We present probabilistic interpretations of ...[semi-linear, Fisher-KPP, group-based, pushmi-...[['An', 'Jing', ''], ['Henderson', 'Christophe...[math.AP, math.PR]2022-09-092209.03435
72Flows of $G_2$-Structures associated to Calabi...Flows of LATEX associated to Calabi-Yau Manif...[Calabi-Yau]We establish a correspondence between a para...We establish a correspondence between a para...[Monge-Ampere, Monge-Ampere, torsion-free, Ric...[['Picard', 'Sébastien', ''], ['Suan', 'Caleb'...[math.DG, math.AP]2022-09-092209.03411
78On the dynamics of vortices in viscous 2D flowsOn the dynamics of vortices in viscous 2D flowsNoneWe study the 2D Navier--Stokes solution star...We study the 2D Navier--Stokes solution star...None[['Ceci', 'Stefano', ''], ['Seis', 'Christian'...[math.AP]2022-09-092203.07185
\n", "
" ], "text/plain": [ " raw_title \\\n", "42 The Prolongation Problem for the Heavenly Equa... \n", "55 Null Controllability for a Degenerate Structur... \n", "59 Voting models and semilinear parabolic equations \n", "72 Flows of $G_2$-Structures associated to Calabi... \n", "78 On the dynamics of vortices in viscous 2D flows \n", "\n", " clean_title hyph_in_title \\\n", "42 The Prolongation Problem for the Heavenly Equa... None \n", "55 Null Controllability for a Degenerate Structur... None \n", "59 Voting models and semilinear parabolic equations None \n", "72 Flows of LATEX associated to Calabi-Yau Manif... [Calabi-Yau] \n", "78 On the dynamics of vortices in viscous 2D flows None \n", "\n", " raw_abstract \\\n", "42 We provide an exact regular solution of an o... \n", "55 In this paper, we consider the infinite dime... \n", "59 We present probabilistic interpretations of ... \n", "72 We establish a correspondence between a para... \n", "78 We study the 2D Navier--Stokes solution star... \n", "\n", " clean_abstract \\\n", "42 We provide an exact regular solution of an o... \n", "55 In this paper, we consider the infinite dime... \n", "59 We present probabilistic interpretations of ... \n", "72 We establish a correspondence between a para... \n", "78 We study the 2D Navier--Stokes solution star... \n", "\n", " hyph_in_abstract \\\n", "42 None \n", "55 [final-state] \n", "59 [semi-linear, Fisher-KPP, group-based, pushmi-... \n", "72 [Monge-Ampere, Monge-Ampere, torsion-free, Ric... \n", "78 None \n", "\n", " authors_parsed \\\n", "42 [['Palese', 'M.', '', 'Dept. Math. Univ. of To... \n", "55 [['Simporé', 'Yacouba', ''], ['gantouh', 'Yass... \n", "59 [['An', 'Jing', ''], ['Henderson', 'Christophe... \n", "72 [['Picard', 'Sébastien', ''], ['Suan', 'Caleb'... \n", "78 [['Ceci', 'Stefano', ''], ['Seis', 'Christian'... \n", "\n", " cat update_date id \n", "42 [math.AP, math-ph, math.MP] 2022-09-21 math/0311218 \n", "55 [math.OC, math.AP] 2022-09-09 2209.03645 \n", "59 [math.AP, math.PR] 2022-09-09 2209.03435 \n", "72 [math.DG, math.AP] 2022-09-09 2209.03411 \n", "78 [math.AP] 2022-09-09 2203.07185 " ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "## Create the dataset of all pde articles\n", "\n", "full_data = pd.read_parquet('./data/arXiv_clean.parquet')\n", "pde = full_data.loc[cats['Analysis of PDEs'] == True]\n", "pde.head()" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## Next goal: Does the raw arxiv dataset contain the MSC subject information?\n", "\n", "No, it doesn't -- this was verified in a kaggle notebook. It has only arxiv subject tag information." ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## 1. Frequently occuring author names. Discover some large subsets of the data consisting of papers who have at least one author with a given name. What are the most commonly occuring names?" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "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.10.11" }, "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 }