Bella Mendoza commited on
Commit
dc8dfd8
·
1 Parent(s): c3cd3cb

increasing limit

Browse files
Files changed (1) hide show
  1. test.ipynb +562 -0
test.ipynb CHANGED
@@ -0,0 +1,562 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 44,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "import gradio as gr\n",
10
+ "import requests\n",
11
+ "from datetime import date\n",
12
+ "import json\n",
13
+ "import pandas as pd\n"
14
+ ]
15
+ },
16
+ {
17
+ "cell_type": "code",
18
+ "execution_count": 39,
19
+ "metadata": {},
20
+ "outputs": [],
21
+ "source": [
22
+ "def fetch_agency_spending(agency_name):\n",
23
+ " endpoint = \"https://api.usaspending.gov/api/v2/search/spending_by_award/\"\n",
24
+ " payload = {\n",
25
+ " \"filters\": {\n",
26
+ " \"award_type_codes\": [\"A\", \"B\", \"C\", \"D\"],\n",
27
+ " \"time_period\": [{\"start_date\": \"2023-01-01\", \"end_date\": str(date.today())}]\n",
28
+ " },\n",
29
+ " \"limit\": 500,\n",
30
+ " \"fields\": [\n",
31
+ " \"Award ID\",\n",
32
+ " \"Recipient Name\",\n",
33
+ " \"Start Date\",\n",
34
+ " \"End Date\",\n",
35
+ " \"Award Amount\",\n",
36
+ " \"Awarding Agency\",\n",
37
+ " \"Awarding Sub Agency\",\n",
38
+ " \"Contract Award Type\",\n",
39
+ " \"Award Type\",\n",
40
+ " \"Funding Agency\",\n",
41
+ " \"Funding Sub Agency\"\n",
42
+ " ],\n",
43
+ " }\n",
44
+ " response = requests.post(endpoint, json=payload)\n",
45
+ "\n",
46
+ " if response.status_code != 200:\n",
47
+ " return f\"Error: {response.status_code} - {response.text}\"\n",
48
+ "\n",
49
+ " try:\n",
50
+ " data = response.json()\n",
51
+ " except Exception as e:\n",
52
+ " return f\"Failed to parse JSON: {str(e)}\\nRaw response:\\n{response.text}\"\n",
53
+ "\n",
54
+ " results = response.json().get(\"results\", [])\n",
55
+ " agency_data = [r for r in results if r[\"Awarding Agency\"].lower() == agency_name.lower()]\n",
56
+ "\n",
57
+ " if not agency_data:\n",
58
+ " return f\"No data found for agency: {agency_name}\"\n",
59
+ "\n",
60
+ " return agency_data\n",
61
+ "\n"
62
+ ]
63
+ },
64
+ {
65
+ "cell_type": "code",
66
+ "execution_count": 38,
67
+ "metadata": {},
68
+ "outputs": [
69
+ {
70
+ "name": "stdout",
71
+ "output_type": "stream",
72
+ "text": [
73
+ "Department of Defense\n",
74
+ "Department of Defense\n",
75
+ "Department of Defense\n",
76
+ "Department of Defense\n",
77
+ "Department of Defense\n",
78
+ "Department of Defense\n",
79
+ "Department of Defense\n",
80
+ "Department of Defense\n",
81
+ "Department of Defense\n",
82
+ "Department of Defense\n"
83
+ ]
84
+ }
85
+ ],
86
+ "source": [
87
+ "endpoint = \"https://api.usaspending.gov/api/v2/search/spending_by_award/\"\n",
88
+ "payload = {\n",
89
+ " \"filters\": {\n",
90
+ " \"award_type_codes\": [\"A\", \"B\", \"C\"],\n",
91
+ " \"time_period\": [{\"start_date\": \"2023-01-01\", \"end_date\": str(date.today())}]\n",
92
+ " },\n",
93
+ "\n",
94
+ " \"fields\": [\n",
95
+ " \"Award ID\",\n",
96
+ " \"Recipient Name\",\n",
97
+ " \"Start Date\",\n",
98
+ " \"End Date\",\n",
99
+ " \"Award Amount\",\n",
100
+ " \"Awarding Agency\",\n",
101
+ " \"Awarding Sub Agency\",\n",
102
+ " \"Contract Award Type\",\n",
103
+ " \"Award Type\",\n",
104
+ " \"Funding Agency\",\n",
105
+ " \"Funding Sub Agency\"\n",
106
+ " ],\n",
107
+ "}\n",
108
+ "response = requests.post(endpoint, json=payload)\n",
109
+ "data = response.json()\n",
110
+ "\n",
111
+ "results = response.json().get(\"results\", [])\n",
112
+ "\n",
113
+ "for r in results:\n",
114
+ " print(r['Awarding Agency'])\n"
115
+ ]
116
+ },
117
+ {
118
+ "cell_type": "code",
119
+ "execution_count": 41,
120
+ "metadata": {},
121
+ "outputs": [],
122
+ "source": [
123
+ "data = fetch_agency_spending(\"Department of Defense\")"
124
+ ]
125
+ },
126
+ {
127
+ "cell_type": "code",
128
+ "execution_count": 42,
129
+ "metadata": {},
130
+ "outputs": [
131
+ {
132
+ "name": "stdout",
133
+ "output_type": "stream",
134
+ "text": [
135
+ "Award ID: ZSMG\n",
136
+ "Recipient: TEXTAINER EQUIPMENT MANAGEMENT (U.S.) LIMITED\n",
137
+ "Award Amount: $7,112.26\n",
138
+ "Start Date: 2018-02-02, End Date: 2019-03-20\n",
139
+ "Awarding Agency: Department of Defense - Department of the Army\n",
140
+ "Funding Agency: Department of Defense - Department of the Army\n",
141
+ "------------------------------------------------------------\n",
142
+ "Award ID: ZS02\n",
143
+ "Recipient: XEROX CORP\n",
144
+ "Award Amount: $778,334.57\n",
145
+ "Start Date: 2016-08-31, End Date: 2023-08-30\n",
146
+ "Awarding Agency: Department of Defense - Department of the Army\n",
147
+ "Funding Agency: Department of Defense - Department of the Army\n",
148
+ "------------------------------------------------------------\n",
149
+ "Award ID: ZL57\n",
150
+ "Recipient: CACI-WGI, LLC\n",
151
+ "Award Amount: $11,303,606.44\n",
152
+ "Start Date: 2015-04-30, End Date: 2016-09-21\n",
153
+ "Awarding Agency: Department of Defense - U.S. Special Operations Command\n",
154
+ "Funding Agency: Department of Defense - U.S. Special Operations Command\n",
155
+ "------------------------------------------------------------\n",
156
+ "Award ID: ZL54\n",
157
+ "Recipient: GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC.\n",
158
+ "Award Amount: $1,890,557.18\n",
159
+ "Start Date: 2012-09-12, End Date: 2016-09-23\n",
160
+ "Awarding Agency: Department of Defense - U.S. Special Operations Command\n",
161
+ "Funding Agency: Department of Defense - U.S. Special Operations Command\n",
162
+ "------------------------------------------------------------\n",
163
+ "Award ID: ZL50\n",
164
+ "Recipient: CELLCO PARTNERSHIP\n",
165
+ "Award Amount: $243,702.71\n",
166
+ "Start Date: 2015-09-11, End Date: 2016-03-11\n",
167
+ "Awarding Agency: Department of Defense - U.S. Special Operations Command\n",
168
+ "Funding Agency: Department of Defense - U.S. Special Operations Command\n",
169
+ "------------------------------------------------------------\n",
170
+ "Award ID: ZL17\n",
171
+ "Recipient: CELLCO PARTNERSHIP\n",
172
+ "Award Amount: $256,292.03\n",
173
+ "Start Date: 2017-10-19, End Date: 2018-10-18\n",
174
+ "Awarding Agency: Department of Defense - U.S. Special Operations Command\n",
175
+ "Funding Agency: Department of Defense - U.S. Special Operations Command\n",
176
+ "------------------------------------------------------------\n",
177
+ "Award ID: ZL06\n",
178
+ "Recipient: NEW CINGULAR WIRELESS SERVICES, INC.\n",
179
+ "Award Amount: $353,454.89\n",
180
+ "Start Date: 2015-03-31, End Date: 2018-03-31\n",
181
+ "Awarding Agency: Department of Defense - U.S. Special Operations Command\n",
182
+ "Funding Agency: Department of Defense - U.S. Special Operations Command\n",
183
+ "------------------------------------------------------------\n",
184
+ "Award ID: ZL05\n",
185
+ "Recipient: CELLCO PARTNERSHIP\n",
186
+ "Award Amount: $393,347.60\n",
187
+ "Start Date: 2018-03-23, End Date: 2023-07-31\n",
188
+ "Awarding Agency: Department of Defense - U.S. Special Operations Command\n",
189
+ "Funding Agency: Department of Defense - U.S. Special Operations Command\n",
190
+ "------------------------------------------------------------\n",
191
+ "Award ID: ZL04\n",
192
+ "Recipient: CELLCO PARTNERSHIP\n",
193
+ "Award Amount: $84,256.12\n",
194
+ "Start Date: 2018-03-20, End Date: 2023-07-23\n",
195
+ "Awarding Agency: Department of Defense - U.S. Special Operations Command\n",
196
+ "Funding Agency: Department of Defense - U.S. Special Operations Command\n",
197
+ "------------------------------------------------------------\n",
198
+ "Award ID: ZL03\n",
199
+ "Recipient: AT&T MOBILITY NATIONAL ACCOUNTS LLC\n",
200
+ "Award Amount: $209,053.64\n",
201
+ "Start Date: 2018-03-23, End Date: 2023-07-30\n",
202
+ "Awarding Agency: Department of Defense - U.S. Special Operations Command\n",
203
+ "Funding Agency: Department of Defense - U.S. Special Operations Command\n",
204
+ "------------------------------------------------------------\n"
205
+ ]
206
+ }
207
+ ],
208
+ "source": [
209
+ "for award in data:\n",
210
+ " print(f\"Award ID: {award['Award ID']}\")\n",
211
+ " print(f\"Recipient: {award['Recipient Name']}\")\n",
212
+ " print(f\"Award Amount: ${award['Award Amount']:,.2f}\")\n",
213
+ " print(f\"Start Date: {award['Start Date']}, End Date: {award['End Date']}\")\n",
214
+ " print(f\"Awarding Agency: {award['Awarding Agency']} - {award['Awarding Sub Agency']}\")\n",
215
+ " print(f\"Funding Agency: {award['Funding Agency']} - {award['Funding Sub Agency']}\")\n",
216
+ " print(\"-\" * 60)"
217
+ ]
218
+ },
219
+ {
220
+ "cell_type": "code",
221
+ "execution_count": 45,
222
+ "metadata": {},
223
+ "outputs": [],
224
+ "source": [
225
+ "df = pd.DataFrame(data)"
226
+ ]
227
+ },
228
+ {
229
+ "cell_type": "code",
230
+ "execution_count": 46,
231
+ "metadata": {},
232
+ "outputs": [
233
+ {
234
+ "data": {
235
+ "text/html": [
236
+ "<div>\n",
237
+ "<style scoped>\n",
238
+ " .dataframe tbody tr th:only-of-type {\n",
239
+ " vertical-align: middle;\n",
240
+ " }\n",
241
+ "\n",
242
+ " .dataframe tbody tr th {\n",
243
+ " vertical-align: top;\n",
244
+ " }\n",
245
+ "\n",
246
+ " .dataframe thead th {\n",
247
+ " text-align: right;\n",
248
+ " }\n",
249
+ "</style>\n",
250
+ "<table border=\"1\" class=\"dataframe\">\n",
251
+ " <thead>\n",
252
+ " <tr style=\"text-align: right;\">\n",
253
+ " <th></th>\n",
254
+ " <th>internal_id</th>\n",
255
+ " <th>Award ID</th>\n",
256
+ " <th>Recipient Name</th>\n",
257
+ " <th>Start Date</th>\n",
258
+ " <th>End Date</th>\n",
259
+ " <th>Award Amount</th>\n",
260
+ " <th>Awarding Agency</th>\n",
261
+ " <th>Awarding Sub Agency</th>\n",
262
+ " <th>Contract Award Type</th>\n",
263
+ " <th>Award Type</th>\n",
264
+ " <th>Funding Agency</th>\n",
265
+ " <th>Funding Sub Agency</th>\n",
266
+ " <th>awarding_agency_id</th>\n",
267
+ " <th>agency_slug</th>\n",
268
+ " <th>generated_internal_id</th>\n",
269
+ " </tr>\n",
270
+ " </thead>\n",
271
+ " <tbody>\n",
272
+ " <tr>\n",
273
+ " <th>0</th>\n",
274
+ " <td>168884992</td>\n",
275
+ " <td>ZSMG</td>\n",
276
+ " <td>TEXTAINER EQUIPMENT MANAGEMENT (U.S.) LIMITED</td>\n",
277
+ " <td>2018-02-02</td>\n",
278
+ " <td>2019-03-20</td>\n",
279
+ " <td>7112.26</td>\n",
280
+ " <td>Department of Defense</td>\n",
281
+ " <td>Department of the Army</td>\n",
282
+ " <td>DELIVERY ORDER</td>\n",
283
+ " <td>None</td>\n",
284
+ " <td>Department of Defense</td>\n",
285
+ " <td>Department of the Army</td>\n",
286
+ " <td>1173</td>\n",
287
+ " <td>department-of-defense</td>\n",
288
+ " <td>CONT_AWD_ZSMG_9700_HTC71114DR027_9700</td>\n",
289
+ " </tr>\n",
290
+ " <tr>\n",
291
+ " <th>1</th>\n",
292
+ " <td>168879808</td>\n",
293
+ " <td>ZS02</td>\n",
294
+ " <td>XEROX CORP</td>\n",
295
+ " <td>2016-08-31</td>\n",
296
+ " <td>2023-08-30</td>\n",
297
+ " <td>778334.57</td>\n",
298
+ " <td>Department of Defense</td>\n",
299
+ " <td>Department of the Army</td>\n",
300
+ " <td>DELIVERY ORDER</td>\n",
301
+ " <td>None</td>\n",
302
+ " <td>Department of Defense</td>\n",
303
+ " <td>Department of the Army</td>\n",
304
+ " <td>1173</td>\n",
305
+ " <td>department-of-defense</td>\n",
306
+ " <td>CONT_AWD_ZS02_9700_W9124A14D0001_9700</td>\n",
307
+ " </tr>\n",
308
+ " <tr>\n",
309
+ " <th>2</th>\n",
310
+ " <td>168872438</td>\n",
311
+ " <td>ZL57</td>\n",
312
+ " <td>CACI-WGI, LLC</td>\n",
313
+ " <td>2015-04-30</td>\n",
314
+ " <td>2016-09-21</td>\n",
315
+ " <td>11303606.44</td>\n",
316
+ " <td>Department of Defense</td>\n",
317
+ " <td>U.S. Special Operations Command</td>\n",
318
+ " <td>DELIVERY ORDER</td>\n",
319
+ " <td>None</td>\n",
320
+ " <td>Department of Defense</td>\n",
321
+ " <td>U.S. Special Operations Command</td>\n",
322
+ " <td>1173</td>\n",
323
+ " <td>department-of-defense</td>\n",
324
+ " <td>CONT_AWD_ZL57_9700_H9222210D0017_9700</td>\n",
325
+ " </tr>\n",
326
+ " <tr>\n",
327
+ " <th>3</th>\n",
328
+ " <td>168872406</td>\n",
329
+ " <td>ZL54</td>\n",
330
+ " <td>GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC.</td>\n",
331
+ " <td>2012-09-12</td>\n",
332
+ " <td>2016-09-23</td>\n",
333
+ " <td>1890557.18</td>\n",
334
+ " <td>Department of Defense</td>\n",
335
+ " <td>U.S. Special Operations Command</td>\n",
336
+ " <td>DELIVERY ORDER</td>\n",
337
+ " <td>None</td>\n",
338
+ " <td>Department of Defense</td>\n",
339
+ " <td>U.S. Special Operations Command</td>\n",
340
+ " <td>1173</td>\n",
341
+ " <td>department-of-defense</td>\n",
342
+ " <td>CONT_AWD_ZL54_9700_H9222210D0019_9700</td>\n",
343
+ " </tr>\n",
344
+ " <tr>\n",
345
+ " <th>4</th>\n",
346
+ " <td>168872357</td>\n",
347
+ " <td>ZL50</td>\n",
348
+ " <td>CELLCO PARTNERSHIP</td>\n",
349
+ " <td>2015-09-11</td>\n",
350
+ " <td>2016-03-11</td>\n",
351
+ " <td>243702.71</td>\n",
352
+ " <td>Department of Defense</td>\n",
353
+ " <td>U.S. Special Operations Command</td>\n",
354
+ " <td>DELIVERY ORDER</td>\n",
355
+ " <td>None</td>\n",
356
+ " <td>Department of Defense</td>\n",
357
+ " <td>U.S. Special Operations Command</td>\n",
358
+ " <td>1173</td>\n",
359
+ " <td>department-of-defense</td>\n",
360
+ " <td>CONT_AWD_ZL50_9700_N0024412D0016_9700</td>\n",
361
+ " </tr>\n",
362
+ " <tr>\n",
363
+ " <th>5</th>\n",
364
+ " <td>168872067</td>\n",
365
+ " <td>ZL17</td>\n",
366
+ " <td>CELLCO PARTNERSHIP</td>\n",
367
+ " <td>2017-10-19</td>\n",
368
+ " <td>2018-10-18</td>\n",
369
+ " <td>256292.03</td>\n",
370
+ " <td>Department of Defense</td>\n",
371
+ " <td>U.S. Special Operations Command</td>\n",
372
+ " <td>DELIVERY ORDER</td>\n",
373
+ " <td>None</td>\n",
374
+ " <td>Department of Defense</td>\n",
375
+ " <td>U.S. Special Operations Command</td>\n",
376
+ " <td>1173</td>\n",
377
+ " <td>department-of-defense</td>\n",
378
+ " <td>CONT_AWD_ZL17_9700_N0024412D0016_9700</td>\n",
379
+ " </tr>\n",
380
+ " <tr>\n",
381
+ " <th>6</th>\n",
382
+ " <td>168871913</td>\n",
383
+ " <td>ZL06</td>\n",
384
+ " <td>NEW CINGULAR WIRELESS SERVICES, INC.</td>\n",
385
+ " <td>2015-03-31</td>\n",
386
+ " <td>2018-03-31</td>\n",
387
+ " <td>353454.89</td>\n",
388
+ " <td>Department of Defense</td>\n",
389
+ " <td>U.S. Special Operations Command</td>\n",
390
+ " <td>DELIVERY ORDER</td>\n",
391
+ " <td>None</td>\n",
392
+ " <td>Department of Defense</td>\n",
393
+ " <td>U.S. Special Operations Command</td>\n",
394
+ " <td>1173</td>\n",
395
+ " <td>department-of-defense</td>\n",
396
+ " <td>CONT_AWD_ZL06_9700_N0024412D0014_9700</td>\n",
397
+ " </tr>\n",
398
+ " <tr>\n",
399
+ " <th>7</th>\n",
400
+ " <td>168871890</td>\n",
401
+ " <td>ZL05</td>\n",
402
+ " <td>CELLCO PARTNERSHIP</td>\n",
403
+ " <td>2018-03-23</td>\n",
404
+ " <td>2023-07-31</td>\n",
405
+ " <td>393347.60</td>\n",
406
+ " <td>Department of Defense</td>\n",
407
+ " <td>U.S. Special Operations Command</td>\n",
408
+ " <td>DELIVERY ORDER</td>\n",
409
+ " <td>None</td>\n",
410
+ " <td>Department of Defense</td>\n",
411
+ " <td>U.S. Special Operations Command</td>\n",
412
+ " <td>1173</td>\n",
413
+ " <td>department-of-defense</td>\n",
414
+ " <td>CONT_AWD_ZL05_9700_N0024418D0003_9700</td>\n",
415
+ " </tr>\n",
416
+ " <tr>\n",
417
+ " <th>8</th>\n",
418
+ " <td>168871866</td>\n",
419
+ " <td>ZL04</td>\n",
420
+ " <td>CELLCO PARTNERSHIP</td>\n",
421
+ " <td>2018-03-20</td>\n",
422
+ " <td>2023-07-23</td>\n",
423
+ " <td>84256.12</td>\n",
424
+ " <td>Department of Defense</td>\n",
425
+ " <td>U.S. Special Operations Command</td>\n",
426
+ " <td>DELIVERY ORDER</td>\n",
427
+ " <td>None</td>\n",
428
+ " <td>Department of Defense</td>\n",
429
+ " <td>U.S. Special Operations Command</td>\n",
430
+ " <td>1173</td>\n",
431
+ " <td>department-of-defense</td>\n",
432
+ " <td>CONT_AWD_ZL04_9700_N0024418D0003_9700</td>\n",
433
+ " </tr>\n",
434
+ " <tr>\n",
435
+ " <th>9</th>\n",
436
+ " <td>168871838</td>\n",
437
+ " <td>ZL03</td>\n",
438
+ " <td>AT&amp;T MOBILITY NATIONAL ACCOUNTS LLC</td>\n",
439
+ " <td>2018-03-23</td>\n",
440
+ " <td>2023-07-30</td>\n",
441
+ " <td>209053.64</td>\n",
442
+ " <td>Department of Defense</td>\n",
443
+ " <td>U.S. Special Operations Command</td>\n",
444
+ " <td>DELIVERY ORDER</td>\n",
445
+ " <td>None</td>\n",
446
+ " <td>Department of Defense</td>\n",
447
+ " <td>U.S. Special Operations Command</td>\n",
448
+ " <td>1173</td>\n",
449
+ " <td>department-of-defense</td>\n",
450
+ " <td>CONT_AWD_ZL03_9700_N0024418D0001_9700</td>\n",
451
+ " </tr>\n",
452
+ " </tbody>\n",
453
+ "</table>\n",
454
+ "</div>"
455
+ ],
456
+ "text/plain": [
457
+ " internal_id Award ID Recipient Name \\\n",
458
+ "0 168884992 ZSMG TEXTAINER EQUIPMENT MANAGEMENT (U.S.) LIMITED \n",
459
+ "1 168879808 ZS02 XEROX CORP \n",
460
+ "2 168872438 ZL57 CACI-WGI, LLC \n",
461
+ "3 168872406 ZL54 GENERAL DYNAMICS INFORMATION TECHNOLOGY, INC. \n",
462
+ "4 168872357 ZL50 CELLCO PARTNERSHIP \n",
463
+ "5 168872067 ZL17 CELLCO PARTNERSHIP \n",
464
+ "6 168871913 ZL06 NEW CINGULAR WIRELESS SERVICES, INC. \n",
465
+ "7 168871890 ZL05 CELLCO PARTNERSHIP \n",
466
+ "8 168871866 ZL04 CELLCO PARTNERSHIP \n",
467
+ "9 168871838 ZL03 AT&T MOBILITY NATIONAL ACCOUNTS LLC \n",
468
+ "\n",
469
+ " Start Date End Date Award Amount Awarding Agency \\\n",
470
+ "0 2018-02-02 2019-03-20 7112.26 Department of Defense \n",
471
+ "1 2016-08-31 2023-08-30 778334.57 Department of Defense \n",
472
+ "2 2015-04-30 2016-09-21 11303606.44 Department of Defense \n",
473
+ "3 2012-09-12 2016-09-23 1890557.18 Department of Defense \n",
474
+ "4 2015-09-11 2016-03-11 243702.71 Department of Defense \n",
475
+ "5 2017-10-19 2018-10-18 256292.03 Department of Defense \n",
476
+ "6 2015-03-31 2018-03-31 353454.89 Department of Defense \n",
477
+ "7 2018-03-23 2023-07-31 393347.60 Department of Defense \n",
478
+ "8 2018-03-20 2023-07-23 84256.12 Department of Defense \n",
479
+ "9 2018-03-23 2023-07-30 209053.64 Department of Defense \n",
480
+ "\n",
481
+ " Awarding Sub Agency Contract Award Type Award Type \\\n",
482
+ "0 Department of the Army DELIVERY ORDER None \n",
483
+ "1 Department of the Army DELIVERY ORDER None \n",
484
+ "2 U.S. Special Operations Command DELIVERY ORDER None \n",
485
+ "3 U.S. Special Operations Command DELIVERY ORDER None \n",
486
+ "4 U.S. Special Operations Command DELIVERY ORDER None \n",
487
+ "5 U.S. Special Operations Command DELIVERY ORDER None \n",
488
+ "6 U.S. Special Operations Command DELIVERY ORDER None \n",
489
+ "7 U.S. Special Operations Command DELIVERY ORDER None \n",
490
+ "8 U.S. Special Operations Command DELIVERY ORDER None \n",
491
+ "9 U.S. Special Operations Command DELIVERY ORDER None \n",
492
+ "\n",
493
+ " Funding Agency Funding Sub Agency awarding_agency_id \\\n",
494
+ "0 Department of Defense Department of the Army 1173 \n",
495
+ "1 Department of Defense Department of the Army 1173 \n",
496
+ "2 Department of Defense U.S. Special Operations Command 1173 \n",
497
+ "3 Department of Defense U.S. Special Operations Command 1173 \n",
498
+ "4 Department of Defense U.S. Special Operations Command 1173 \n",
499
+ "5 Department of Defense U.S. Special Operations Command 1173 \n",
500
+ "6 Department of Defense U.S. Special Operations Command 1173 \n",
501
+ "7 Department of Defense U.S. Special Operations Command 1173 \n",
502
+ "8 Department of Defense U.S. Special Operations Command 1173 \n",
503
+ "9 Department of Defense U.S. Special Operations Command 1173 \n",
504
+ "\n",
505
+ " agency_slug generated_internal_id \n",
506
+ "0 department-of-defense CONT_AWD_ZSMG_9700_HTC71114DR027_9700 \n",
507
+ "1 department-of-defense CONT_AWD_ZS02_9700_W9124A14D0001_9700 \n",
508
+ "2 department-of-defense CONT_AWD_ZL57_9700_H9222210D0017_9700 \n",
509
+ "3 department-of-defense CONT_AWD_ZL54_9700_H9222210D0019_9700 \n",
510
+ "4 department-of-defense CONT_AWD_ZL50_9700_N0024412D0016_9700 \n",
511
+ "5 department-of-defense CONT_AWD_ZL17_9700_N0024412D0016_9700 \n",
512
+ "6 department-of-defense CONT_AWD_ZL06_9700_N0024412D0014_9700 \n",
513
+ "7 department-of-defense CONT_AWD_ZL05_9700_N0024418D0003_9700 \n",
514
+ "8 department-of-defense CONT_AWD_ZL04_9700_N0024418D0003_9700 \n",
515
+ "9 department-of-defense CONT_AWD_ZL03_9700_N0024418D0001_9700 "
516
+ ]
517
+ },
518
+ "execution_count": 46,
519
+ "metadata": {},
520
+ "output_type": "execute_result"
521
+ }
522
+ ],
523
+ "source": [
524
+ "df"
525
+ ]
526
+ },
527
+ {
528
+ "cell_type": "code",
529
+ "execution_count": null,
530
+ "metadata": {},
531
+ "outputs": [],
532
+ "source": []
533
+ }
534
+ ],
535
+ "metadata": {
536
+ "kernelspec": {
537
+ "display_name": "Python 3.9.6 64-bit",
538
+ "language": "python",
539
+ "name": "python3"
540
+ },
541
+ "language_info": {
542
+ "codemirror_mode": {
543
+ "name": "ipython",
544
+ "version": 3
545
+ },
546
+ "file_extension": ".py",
547
+ "mimetype": "text/x-python",
548
+ "name": "python",
549
+ "nbconvert_exporter": "python",
550
+ "pygments_lexer": "ipython3",
551
+ "version": "3.9.6"
552
+ },
553
+ "orig_nbformat": 4,
554
+ "vscode": {
555
+ "interpreter": {
556
+ "hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6"
557
+ }
558
+ }
559
+ },
560
+ "nbformat": 4,
561
+ "nbformat_minor": 2
562
+ }