Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 33 additions & 31 deletions notebooks/budget-deep-space-exploration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"source": [
"## Locate the account\n",
"\n",
"To explore a federal agency's budget account, you need to know the account number and fiscal year. To find the account number, you can call the `list_budget_accounts` method with a free-text `search` parameter. The `shape` parameter trims the payload to just the fields we want."
"To explore a federal agency's budget account, you need to know the account number and fiscal year. To find the account number, you can call the `list_budget_accounts` method with a free-text `search` parameter. The `shape` parameter trims the payload to just the fields we want.\n",
"\n",
"> NASA retitled this account from \"Deep Space Exploration Systems\" to simply \"Exploration\" starting in FY2024, so we search for `exploration` — a reminder that account titles drift, while the `federal_account_symbol` (here `080-0124`) is the stable key."
]
},
{
Expand All @@ -33,10 +35,10 @@
"id": "2",
"metadata": {
"execution": {
"iopub.execute_input": "2026-06-04T15:49:17.403318Z",
"iopub.status.busy": "2026-06-04T15:49:17.403221Z",
"iopub.status.idle": "2026-06-04T15:49:17.467106Z",
"shell.execute_reply": "2026-06-04T15:49:17.466459Z"
"iopub.execute_input": "2026-06-19T00:47:24.093357Z",
"iopub.status.busy": "2026-06-19T00:47:24.093246Z",
"iopub.status.idle": "2026-06-19T00:47:24.230832Z",
"shell.execute_reply": "2026-06-19T00:47:24.229855Z"
}
},
"outputs": [],
Expand All @@ -52,25 +54,25 @@
"id": "3",
"metadata": {
"execution": {
"iopub.execute_input": "2026-06-04T15:49:17.468628Z",
"iopub.status.busy": "2026-06-04T15:49:17.468514Z",
"iopub.status.idle": "2026-06-04T15:49:17.662721Z",
"shell.execute_reply": "2026-06-04T15:49:17.662109Z"
"iopub.execute_input": "2026-06-19T00:47:24.232252Z",
"iopub.status.busy": "2026-06-19T00:47:24.232126Z",
"iopub.status.idle": "2026-06-19T00:47:24.631301Z",
"shell.execute_reply": "2026-06-19T00:47:24.630762Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"080-0124 Deep Space Exploration Systems — National Aeronautics and Space Administration\n"
"080-0124 Exploration — National Aeronautics and Space Administration\n"
]
}
],
"source": [
"# Search the budget endpoint\n",
"nasa = client.list_budget_accounts(\n",
" search=\"deep space\", fiscal_year=2024,\n",
" search=\"exploration\", fiscal_year=2024,\n",
" shape=\"id,federal_account_symbol,account_title,agency_name\",\n",
").results[0]\n",
"\n",
Expand All @@ -95,18 +97,18 @@
"id": "5",
"metadata": {
"execution": {
"iopub.execute_input": "2026-06-04T15:49:17.664105Z",
"iopub.status.busy": "2026-06-04T15:49:17.663979Z",
"iopub.status.idle": "2026-06-04T15:49:17.763208Z",
"shell.execute_reply": "2026-06-04T15:49:17.762638Z"
"iopub.execute_input": "2026-06-19T00:47:24.632920Z",
"iopub.status.busy": "2026-06-19T00:47:24.632791Z",
"iopub.status.idle": "2026-06-19T00:47:24.776495Z",
"shell.execute_reply": "2026-06-19T00:47:24.775502Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requested $ 7.97B\n",
"Requested $ 0.00B\n",
"Enacted $ 7.65B\n",
"Apportioned $ 15.89B\n",
"Obligated $ 7.83B\n",
Expand Down Expand Up @@ -150,10 +152,10 @@
"id": "8",
"metadata": {
"execution": {
"iopub.execute_input": "2026-06-04T15:49:17.764643Z",
"iopub.status.busy": "2026-06-04T15:49:17.764517Z",
"iopub.status.idle": "2026-06-04T15:49:18.364777Z",
"shell.execute_reply": "2026-06-04T15:49:18.364212Z"
"iopub.execute_input": "2026-06-19T00:47:24.778612Z",
"iopub.status.busy": "2026-06-19T00:47:24.778495Z",
"iopub.status.idle": "2026-06-19T00:47:25.371644Z",
"shell.execute_reply": "2026-06-19T00:47:25.370517Z"
}
},
"outputs": [
Expand Down Expand Up @@ -197,10 +199,10 @@
"id": "10",
"metadata": {
"execution": {
"iopub.execute_input": "2026-06-04T15:49:18.366911Z",
"iopub.status.busy": "2026-06-04T15:49:18.366724Z",
"iopub.status.idle": "2026-06-04T15:49:18.938141Z",
"shell.execute_reply": "2026-06-04T15:49:18.937328Z"
"iopub.execute_input": "2026-06-19T00:47:25.374326Z",
"iopub.status.busy": "2026-06-19T00:47:25.374153Z",
"iopub.status.idle": "2026-06-19T00:47:25.989213Z",
"shell.execute_reply": "2026-06-19T00:47:25.988447Z"
}
},
"outputs": [
Expand All @@ -210,15 +212,15 @@
"text": [
"Account Agency Title Obligated Share Contracts\n",
"--------------------------------------------------------------------------------------------------------\n",
"080-0115 National Aeronautics and Spa.. Space Operations $ 3.78B 49.5% 39\n",
"080-0124 National Aeronautics and Spa.. Exploration $ 3.18B 41.6% 20\n",
"057-3021 Department of Defense--Milit.. Space Procurement, Air Force $ 0.21B 2.8% 14\n",
"080-0120 National Aeronautics and Spa.. Science $ 0.21B 2.7% 15\n",
"057-3022 Department of Defense--Milit.. Procurement, Space Force $ 0.12B 1.6% 15\n",
"080-0115 National Aeronautics and Spa.. Space Operations $ 3.78B 48.3% 40\n",
"080-0124 National Aeronautics and Spa.. Exploration $ 3.14B 40.2% 21\n",
"057-3022 Department of Defense--Milit.. 57-3022 21/23 - Procurement, S.. $ 0.36B 4.5% 19\n",
"057-3021 Department of Defense--Milit.. Space Procurement, Air Force $ 0.21B 2.7% 14\n",
"080-0120 National Aeronautics and Spa.. Science $ 0.20B 2.6% 15\n",
"080-0131 National Aeronautics and Spa.. Space Technology $ 0.05B 0.7% 14\n",
"097-0400 Department of Defense--Milit.. Research, Development, Test an.. $ 0.04B 0.5% 11\n",
"057-3620 Department of Defense--Milit.. Research, Development, Test, a.. $ 0.04B 0.5% 15\n",
"011-1022 Department of State 11-1022 15/20 - International .. $ 0.01B 0.1% 2\n",
"057-3620 Department of Defense--Milit.. Research, Development, Test, a.. $ 0.02B 0.3% 16\n",
"011-1022 Department of State State Department $ 0.01B 0.1% 2\n",
"017-1319 Department of Defense--Milit.. Research, Development, Test an.. $ 0.00B 0.0% 1\n"
]
}
Expand Down
Loading