@@ -18,6 +18,7 @@ You can contribute to this project in two ways. Please check the [contributing g
18
18
## Index
19
19
* [ Art] ( #art )
20
20
* [ Business] ( #business )
21
+ * [ Crime] ( #crime )
21
22
* [ Finance] ( #finance )
22
23
* [ Geocoding] ( #geocoding )
23
24
* [ Lifestyle] ( #lifestyle )
@@ -463,6 +464,206 @@ df.drop('total', axis=1)
463
464
</details >
464
465
465
466
467
+ ### Crime
468
+
469
+ #### [ JailBase] ( ./jailbase ) -- Collect Prisoner Data
470
+ <details >
471
+ <summary >What is the URL for the mugshot of Almondo Smith?</summary >
472
+
473
+ ``` python
474
+ # You can get ”jailbase_access_token“ by registering as a developer https://rapidapi.com/JailBase/api/jailbase
475
+ dc = connect(' jailbase' , _auth = {' access_token' :jailbase_access_token})
476
+
477
+ df = await dc.query(' search' , source_id = ' wi-wcsd' , last_name = ' smith' , first_name = ' almondo' )
478
+
479
+ df[' mugshot' ][0 ]
480
+ ```
481
+
482
+
483
+
484
+
485
+ 'https://imgstore.jailbase.com/small/arrested/wi-wcsd/2017-12-29/almondo-smith-679063bf90e389938d70b0b49caf7944.pic1.jpg '
486
+
487
+ </details >
488
+ <details >
489
+ <summary >Who were the 10 most recently arrested people by Wood County Sheriff's Department?</summary >
490
+
491
+ ``` python
492
+ # You can get ”jailbase_access_token“ by registering as a developer https://rapidapi.com/JailBase/api/jailbase
493
+ dc = connect(' jailbase' , _auth = {' access_token' :jailbase_access_token})
494
+ sources = await dc.query(' sources' )
495
+ department = sources[sources[' name' ]== ' Wood County Sheriff\' s Dept' ]
496
+
497
+ df = await dc.query(' recent' , source_id = department[' source_id' ].values[0 ])
498
+
499
+ df
500
+ ```
501
+
502
+
503
+
504
+
505
+ <div >
506
+ <table border =" 1 " class =" dataframe " >
507
+ <thead >
508
+ <tr style =" text-align : right ;" >
509
+ <th ></th >
510
+ <th >id</th >
511
+ <th >name</th >
512
+ <th >mugshot</th >
513
+ <th >charges</th >
514
+ <th >more_info_url</th >
515
+ </tr >
516
+ </thead >
517
+ <tbody >
518
+ <tr >
519
+ <th >0</th >
520
+ <td >23917656</td >
521
+ <td >Curtis Joseph</td >
522
+ <td >https://imgstore.jailbase.com/small/arrested/w...</td >
523
+ <td >[[]]</td >
524
+ <td >http://www.jailbase.com/en/wi-wcsdcurtis-josep...</td >
525
+ </tr >
526
+ <tr >
527
+ <th >1</th >
528
+ <td >23917654</td >
529
+ <td >Taner Summers</td >
530
+ <td >https://imgstore.jailbase.com/small/arrested/w...</td >
531
+ <td >[[]]</td >
532
+ <td >http://www.jailbase.com/en/wi-wcsdtaner-summer...</td >
533
+ </tr >
534
+ <tr >
535
+ <th >2</th >
536
+ <td >23901411</td >
537
+ <td >Maryann Randolph</td >
538
+ <td >https://imgstore.jailbase.com/small/arrested/w...</td >
539
+ <td >[[]]</td >
540
+ <td >http://www.jailbase.com/en/wi-wcsdmaryann-rand...</td >
541
+ </tr >
542
+ <tr >
543
+ <th >3</th >
544
+ <td >23821284</td >
545
+ <td >Antonia Cinodijay</td >
546
+ <td >https://imgstore.jailbase.com/widgets/NoMug.gif</td >
547
+ <td >[[]]</td >
548
+ <td >http://www.jailbase.com/en/wi-wcsdantonia-cino...</td >
549
+ </tr >
550
+ <tr >
551
+ <th >4</th >
552
+ <td >23821280</td >
553
+ <td >Deangelo Barker</td >
554
+ <td >https://imgstore.jailbase.com/small/arrested/w...</td >
555
+ <td >[[]]</td >
556
+ <td >http://www.jailbase.com/en/wi-wcsddeangelo-bar...</td >
557
+ </tr >
558
+ <tr >
559
+ <th >5</th >
560
+ <td >23811811</td >
561
+ <td >Tekeisha Faucibus</td >
562
+ <td >https://imgstore.jailbase.com/small/arrested/w...</td >
563
+ <td >[[]]</td >
564
+ <td >http://www.jailbase.com/en/wi-wcsdtekeisha-fau...</td >
565
+ </tr >
566
+ <tr >
567
+ <th >6</th >
568
+ <td >23811810</td >
569
+ <td >Tariq Nunoke</td >
570
+ <td >https://imgstore.jailbase.com/small/arrested/w...</td >
571
+ <td >[[]]</td >
572
+ <td >http://www.jailbase.com/en/wi-wcsdtariq-nunoke...</td >
573
+ </tr >
574
+ <tr >
575
+ <th >7</th >
576
+ <td >23811808</td >
577
+ <td >Sarah Jusakaja</td >
578
+ <td >https://imgstore.jailbase.com/small/arrested/w...</td >
579
+ <td >[[]]</td >
580
+ <td >http://www.jailbase.com/en/wi-wcsdsarah-jusaka...</td >
581
+ </tr >
582
+ <tr >
583
+ <th >8</th >
584
+ <td >23791805</td >
585
+ <td >Angela Burch</td >
586
+ <td >https://imgstore.jailbase.com/small/arrested/w...</td >
587
+ <td >[[]]</td >
588
+ <td >http://www.jailbase.com/en/wi-wcsdangela-burch...</td >
589
+ </tr >
590
+ <tr >
591
+ <th >9</th >
592
+ <td >23775367</td >
593
+ <td >Suzanne Nicholson</td >
594
+ <td >https://imgstore.jailbase.com/small/arrested/w...</td >
595
+ <td >[[]]</td >
596
+ <td >http://www.jailbase.com/en/wi-wcsdsuzanne-nich...</td >
597
+ </tr >
598
+ </tbody >
599
+ </table >
600
+ </div >
601
+
602
+ </details >
603
+ <details >
604
+ <summary >How many police offices are in each US state in the JailBase system?</summary >
605
+
606
+ ``` python
607
+ # You can get ”jailbase_access_token“ by registering as a developer https://rapidapi.com/JailBase/api/jailbase
608
+ dc = connect(' jailbase' , _auth = {' access_token' :jailbase_access_token})
609
+
610
+ df = await dc.query(' sources' )
611
+
612
+ state_counts = df[' state' ].value_counts()
613
+ state_counts
614
+ ```
615
+
616
+
617
+
618
+
619
+ North Carolina 81
620
+ Kentucky 75
621
+ Missouri 73
622
+ Arkansas 70
623
+ Iowa 67
624
+ Texas 57
625
+ Virginia 47
626
+ Florida 46
627
+ Mississippi 44
628
+ Indiana 38
629
+ New York 37
630
+ South Carolina 35
631
+ Ohio 29
632
+ Colorado 27
633
+ Tennessee 26
634
+ Alabama 26
635
+ Idaho 23
636
+ New Mexico 18
637
+ California 18
638
+ Michigan 17
639
+ Georgia 17
640
+ Illinois 14
641
+ Washington 13
642
+ Wisconsin 11
643
+ Oregon 10
644
+ Nevada 9
645
+ Arizona 9
646
+ Louisiana 8
647
+ New Jersey 7
648
+ Oklahoma 6
649
+ Utah 5
650
+ Minnesota 5
651
+ Pennsylvania 4
652
+ Maryland 4
653
+ Kansas 3
654
+ North Dakota 3
655
+ South Dakota 2
656
+ Wyoming 2
657
+ Alaska 1
658
+ West Virginia 1
659
+ Nebraska 1
660
+ Montana 1
661
+ Connecticut 1
662
+ Name: state, dtype: int64
663
+
664
+
665
+ </details >
666
+
466
667
467
668
### Finance
468
669
0 commit comments