TIL: Template data exploration Jupyter notebook

Template Jupyter notebook for exploring data.

I have added it as a Raycast snippet @notebook

In VSCode/ Windsurf/ Cursor, create a new file called explore_data.txt and copy the content below or use the Raycast snippet, then rename it to explore_data.ipynb.

{
    "cells": [
        {
            "cell_type": "markdown",
            "metadata": {},
            "source": [
                "# Explore Data"
            ]
        },
        {
            "cell_type": "markdown",
            "metadata": {},
            "source": [
                "## Imports"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": null,
            "metadata": {},
            "source": [
                "from pathlib import Path\n",
                "\n",
                "import matplotlib.pyplot as plt\n",
                "import numpy as np\n",
                "import pandas as pd\n",
                "import seaborn as sns\n",
                "\n",
                "sns.set_style('whitegrid')\n"
            ]
        },
        {
            "cell_type": "markdown",
            "metadata": {},
            "source": [
                "## Paths & Settings"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": null,
            "metadata": {},
            "source": [
                "DATA_DIR = Path.home() / \"data\""
            ]
        },
        {
            "cell_type": "markdown",
            "metadata": {},
            "source": [
                "## Load Data"
            ]
        },
        {
            "cell_type": "code",
            "execution_count": null,
            "metadata": {},
            "source": [
                "df = pd.read_csv(DATA_DIR / \"data.csv\")\n",
                "\n",
                "df"
            ]
        }
    ],
    "metadata": {
        "language_info": {
            "name": "python"
        }
    }
}



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • TIL: Multi-node GPU training with SkyPilot and PyTorch Lightning
  • TIL: Request GCP quota increase
  • TIL: Useful Datamol functions
  • TIL: Template data processing script with pathlib, fire, joblib, loguru, and tqdm
  • TIL: Useful SkyPilot Commands