{ "cells": [ { "cell_type": "markdown", "id": "f592e2c0", "metadata": {}, "source": [ "# Active Satellite Orbits\n", "\n", "Starter notebook for the Kaggle dataset in this folder. It loads `satellites.csv` with pandas and walks through quality checks and a first piece of analysis.\n", "\n", "**Files:** `satellites.csv`, `data_dictionary.csv`." ] }, { "cell_type": "markdown", "id": "0000f7f2", "metadata": {}, "source": [ "## 1. Load the data" ] }, { "cell_type": "code", "id": "5071c008", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "import pandas as pd\n", "\n", "df = pd.read_csv(\"satellites.csv\", low_memory=False)\n", "for c in [\"mean_altitude_km\", \"inclination\", \"period\", \"mean_motion\"]:\n", " df[c] = pd.to_numeric(df[c], errors=\"coerce\")\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": "89d5659b", "metadata": {}, "source": [ "## 4. Orbit shells\n", "\n", "Inclination versus altitude — the mega-constellation shells are obvious." ] }, { "cell_type": "code", "id": "2c85a7e2", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df.dropna(subset=[\"inclination\", \"mean_altitude_km\"]).query(\"mean_altitude_km < 40000\").plot.scatter(\n", " x=\"inclination\", y=\"mean_altitude_km\", s=3, alpha=0.3, figsize=(11, 6))" ] }, { "cell_type": "markdown", "id": "3f29f4ea", "metadata": {}, "source": [ "## 5. Largest constellations" ] }, { "cell_type": "code", "id": "1447ac17", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df[\"constellation\"].value_counts().head(12).plot.barh(figsize=(8, 5))" ] }, { "cell_type": "markdown", "id": "5a8e2b61", "metadata": {}, "source": [ "## 6. Orbital regimes" ] }, { "cell_type": "code", "id": "24d0c82b", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df[\"orbital_regime\"].value_counts()" ] }, { "cell_type": "markdown", "id": "231fba49", "metadata": {}, "source": [ "## 7. Altitude histogram for Starlink" ] }, { "cell_type": "code", "id": "6d3e531f", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df.query(\"constellation == 'Starlink'\")[\"mean_altitude_km\"].plot.hist(bins=80, figsize=(10, 4))" ] }, { "cell_type": "markdown", "id": "c7c6946d", "metadata": {}, "source": [ "## 8. Launch waves" ] }, { "cell_type": "code", "id": "0b951696", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df[\"launch_year\"].dropna().astype(int).value_counts().sort_index().plot.bar(figsize=(12, 4))" ] }, { "cell_type": "markdown", "id": "000abe39", "metadata": {}, "source": [ "## 9. Sun-synchronous fleet by operator" ] }, { "cell_type": "code", "id": "2543b788", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df[df[\"is_sun_synchronous\"].astype(str).str.lower() == \"true\"][\"operator_group\"].value_counts().head(10)" ] }, { "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 }