From a4ab0c63756b3bf671f01550c85bee0de6f461c5 Mon Sep 17 00:00:00 2001 From: Nathan Blumenfeld Date: Fri, 2 Sep 2022 00:20:37 -0400 Subject: [PATCH] +examples notebook, docs update --- MANIFEST.in | 1 + collegebaseball/__init__.py | 6 +- collegebaseball/boydsworld_scraper.py | 5 + collegebaseball/download_utils.py | 2 +- docs/source/gamelogs.rst | 1 + docs/source/index.rst | 1 + docs/source/install.rst | 1 + docs/source/lookup.rst | 1 + docs/source/metrics.rst | 1 + docs/source/results.rst | 9 + docs/source/schools.rst | 954 ++ docs/source/season_stats.rst | 1 + examples.ipynb | 12245 ++++++++++++++++++++++++ 13 files changed, 13226 insertions(+), 2 deletions(-) create mode 100644 docs/source/schools.rst create mode 100644 examples.ipynb diff --git a/MANIFEST.in b/MANIFEST.in index 5c13b2e..567dc7f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ include DESCRIPTION.rst include *.parquet +include *.csv recursive-include collegebaseball/data * \ No newline at end of file diff --git a/collegebaseball/__init__.py b/collegebaseball/__init__.py index 5248f91..ac04c23 100644 --- a/collegebaseball/__init__.py +++ b/collegebaseball/__init__.py @@ -1,6 +1,6 @@ from .ncaa_scraper import ncaa_team_season_roster, ncaa_team_roster, \ ncaa_career_stats, ncaa_team_stats, ncaa_team_totals, \ - ncaa_team_game_logs, ncaa_player_game_logs + ncaa_team_game_logs, ncaa_player_game_logs, ncaa_team_results from .lookup import lookup_season_ids, lookup_season_reverse, \ lookup_season_id, lookup_seasons_played, lookup_school, \ lookup_player, _lookup_season_info, _lookup_school_info @@ -15,6 +15,10 @@ get_seasons_path, get_seasons_table, \ get_rosters_path, get_rosters_table, \ get_season_linear_weights +from .download_utils import download_rosters, \ + download_player_game_logs, download_season_rosters, \ + download_team_results, download_team_stats, \ + download_team_totals __version__ = '1.2.2-alpha' __author__ = 'Nathan Blumenfeld' diff --git a/collegebaseball/boydsworld_scraper.py b/collegebaseball/boydsworld_scraper.py index baf5221..eb7dda4 100644 --- a/collegebaseball/boydsworld_scraper.py +++ b/collegebaseball/boydsworld_scraper.py @@ -18,8 +18,13 @@ def boydsworld_team_results(school, start, end=None, vs="all", Args: school (str): team whose games to select +<<<<<<< Updated upstream start (int): the start year of games end (int): the end season of games +======= + start (int): the start year of games, 1992 <= start <= 2022 + end (int): the end season of games, 1992 <= end <= 2022 +>>>>>>> Stashed changes vs (str): school to filter games against. default: 'all' parse_dates (bool): whether to parse data into datetime64 diff --git a/collegebaseball/download_utils.py b/collegebaseball/download_utils.py index fd284a1..6f71326 100644 --- a/collegebaseball/download_utils.py +++ b/collegebaseball/download_utils.py @@ -116,7 +116,7 @@ def download_team_stats(seasons: list[int], variant: str, divisions: list[int], if save: res.to_csv('collegebaseball/data/d'+str(division)+'_'+str(season) + '_'+variant+'_stats.csv', index=False) - return res, failures + return res def download_player_game_logs(season, division=None, save=True): diff --git a/docs/source/gamelogs.rst b/docs/source/gamelogs.rst index 074ac8e..fc06359 100644 --- a/docs/source/gamelogs.rst +++ b/docs/source/gamelogs.rst @@ -1,3 +1,4 @@ +================== Game-by-Game Stats ================== diff --git a/docs/source/index.rst b/docs/source/index.rst index a223271..3ede606 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -1,3 +1,4 @@ +=========================================== Welcome to collegebaseball's documentation! =========================================== diff --git a/docs/source/install.rst b/docs/source/install.rst index 4126c11..c661a8c 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -1,3 +1,4 @@ +============ Installation ============ diff --git a/docs/source/lookup.rst b/docs/source/lookup.rst index 9fdd9ca..8b2eb44 100644 --- a/docs/source/lookup.rst +++ b/docs/source/lookup.rst @@ -1,3 +1,4 @@ +================ Lookup Functions ================ diff --git a/docs/source/metrics.rst b/docs/source/metrics.rst index 8fb32da..6520218 100644 --- a/docs/source/metrics.rst +++ b/docs/source/metrics.rst @@ -1,3 +1,4 @@ +======= Metrics ======= diff --git a/docs/source/results.rst b/docs/source/results.rst index 3ae5669..b646843 100644 --- a/docs/source/results.rst +++ b/docs/source/results.rst @@ -1,3 +1,4 @@ +============ Game Results ============ @@ -18,11 +19,19 @@ Team Results Valid 1992 to 2021, d1 only :school (str): team whose games to select +<<<<<<< Updated upstream :start (int): the start year of games :end (int): the end season of games :vs (str): school to filter games against. default: 'all' :parse_dates (bool): whether to parse data into datetime64 :returns (pd.DataFrame): of all games played for a given team inclusive of start & end +======= + :start (int): the start year of games, 1992 <= x <= 2022 + :end (int, optional): the end season of games, 1992 <= x <= 2022 + :vs (str, optional): school to filter games against. default: 'all' + :parse_dates (bool, optional): whether to parse data into datetime64 + :return (pd.DataFrame): of all games played for a given team inclusive of start & end +>>>>>>> Stashed changes .. py:function:: win_pct.calculate_actual_win_pct(games): diff --git a/docs/source/schools.rst b/docs/source/schools.rst new file mode 100644 index 0000000..6893f07 --- /dev/null +++ b/docs/source/schools.rst @@ -0,0 +1,954 @@ +==================== +School Names and IDs +==================== + + +=================================== ================================= ============ =========== +ncaa_name bd_name school_id division +=================================== ================================= ============ =========== +Abilene Christian Abilene Christian 2 1 +Air Force Air Force 721 1 +Akron Akron 5 1 +Alabama Alabama 8 1 +Alabama A&M Alabama A&M 6 1 +Alabama St. Alabama State 7 1 +UAB Alabama-Birmingham 9 1 +Albany (NY) Albany 14 1 +Alcorn Alcorn State 17 1 +Appalachian St. Appalachian State 27 1 +Arizona Arizona 29 1 +Arizona St. Arizona State 28 1 +Arkansas Arkansas 31 1 +Arkansas St. Arkansas State 30 1 +Little Rock Arkansas-Little Rock 32 1 +Ark.-Pine Bluff Arkansas-Pine Bluff 2678 1 +Army West Point Army 725 1 +Auburn Auburn 37 1 +Austin Peay Austin Peay State 43 1 +Ball St. Ball State 47 1 +Baylor Baylor 51 1 +Belmont Belmont 14927 1 +Bethune-Cookman Bethune-Cookman 61 1 +Binghamton Binghamton 62 1 +Boise St. Boise State 66 1 +Boston College Boston College 67 1 +Bowling Green Bowling Green State 71 1 +Bradley Bradley 72 1 +BYU Brigham Young 77 1 +Brown Brown 80 1 +Bryant Bryant 81 1 +Bucknell Bucknell 83 1 +Buffalo Buffalo 86 1 +Butler Butler 87 1 +CSU Bakersfield CSU Bakersfield 94 1 +Cal Poly Cal Poly 90 1 +Cal St. Fullerton Cal State Fullerton 97 1 +CSUN Cal State Northridge 101 1 +California California 107 1 +California Baptist California Baptist 30135 1 +Campbell Campbell 115 1 +Canisius Canisius 116 1 +Central Ark. Central Arkansas 1004 1 +Central Conn. St. Central Connecticut State 127 1 +UCF Central Florida 128 1 +Central Mich. Central Michigan 129 1 +Charleston So. Charleston Southern 48 1 +Chicago St. Chicago State 136 1 +Cincinnati Cincinnati 140 1 +Clemson Clemson 147 1 +Coastal Carolina Coastal Carolina 149 1 +Col. of Charleston College of Charleston 1014 1 +Columbia Columbia 158 1 +UConn Connecticut 164 1 +Coppin St. Coppin State 165 1 +Cornell Cornell 167 1 +Creighton Creighton 169 1 +DBU Dallas Baptist 1045 1 +Dartmouth Dartmouth 172 1 +Davidson Davidson 173 1 +Dayton Dayton 175 1 +Delaware Delaware 180 1 +Delaware St. Delaware State 178 1 +Dixie St. Dixie State 30095 1 +Duke Duke 193 1 +East Carolina East Carolina 196 1 +ETSU East Tennessee 198 1 +Eastern Ill. Eastern Illinois 201 1 +Eastern Ky. Eastern Kentucky 202 1 +Eastern Mich. Eastern Michigan 204 1 +Elon Elon 1068 1 +Evansville Evansville 219 1 +Fairfield Fairfield 220 1 +Fairleigh Dickinson Fairleigh Dickinson 222 1 +Florida Florida 235 1 +Florida A&M Florida A&M 228 1 +Fla. Atlantic Florida Atlantic 229 1 +FGCU Florida Gulf Coast 28755 1 +FIU Florida International 231 1 +Florida St. Florida State 234 1 +Fordham Fordham 236 1 +Fresno St. Fresno State 96 1 +Furman Furman 244 1 +Gardner-Webb Gardner-Webb 1092 1 +George Mason George Mason 248 1 +George Washington George Washington 249 1 +Georgetown Georgetown 251 1 +Georgia Georgia 257 1 +Ga. Southern Georgia Southern 253 1 +Georgia St. Georgia State 254 1 +Georgia Tech Georgia Tech 255 1 +Gonzaga Gonzaga 260 1 +Grambling Grambling State 261 1 +Grand Canyon Grand Canyon 1104 1 +Hartford Hartford 272 1 +Harvard Harvard 275 1 +Hawaii Hawaii 277 1 +High Point High Point 19651 1 +Hofstra Hofstra 283 1 +Holy Cross Holy Cross 285 1 +Houston Houston 288 1 +Houston Baptist Houston Baptist 287 1 +Illinois Illinois 301 1 +Illinois St. Illinois State 299 1 +UIC Illinois-Chicago 302 1 +UIW Incarnate World 2743 1 +Indiana Indiana 306 1 +Indiana St. Indiana State 305 1 +Iona Iona 310 1 +Iowa Iowa 312 1 +Jackson St. Jackson State 314 1 +Jacksonville Jacksonville 316 1 +Jacksonville St. Jacksonville State 315 1 +James Madison James Madison 317 1 +Kansas Kansas 328 1 +Kansas St. Kansas State 327 1 +Kennesaw St. Kennesaw State 1157 1 +Kent St. Kent State 331 1 +Kentucky Kentucky 334 1 +La Salle LaSalle 340 1 +Lafayette Lafayette 342 1 +Lamar University Lamar 346 1 +Lehigh Lehigh 352 1 +Liberty Liberty 355 1 +Lipscomb Lipscomb 28600 1 +Long Beach St. Long Beach State 99 1 +LIU Long Island 361 1 +Longwood Longwood 363 1 +LSU Louisiana State 365 1 +Louisiana Tech Louisiana Tech 366 1 +La.-Monroe Louisiana-Monroe 498 1 +Louisville Louisville 367 1 +LMU (CA) Loyola Marymount 370 1 +Maine Maine 380 1 +Manhattan Manhattan 381 1 +Marist Marist 386 1 +Marshall Marshall 388 1 +Maryland Maryland 392 1 +UMBC Maryland-Baltimore County 391 1 +UMES Maryland-Eastern Shore 393 1 +Massachusetts Massachusetts 400 1 +UMass Lowell Massachusetts-Lowell 368 1 +McNeese McNeese State 402 1 +Memphis Memphis 404 1 +Mercer Mercer 406 1 +Miami (FL) "Miami, Florida" 415 1 +Miami (OH) "Miami, Ohio" 414 1 +Michigan Michigan 418 1 +Michigan St. Michigan State 416 1 +Middle Tenn. Middle Tennessee 419 1 +Minnesota Minnesota 428 1 +Ole Miss Mississippi 433 1 +Mississippi St. Mississippi State 430 1 +Mississippi Val. Mississippi Valley State 432 1 +Missouri Missouri 434 1 +Missouri St. Missouri State 669 1 +Monmouth Monmouth 439 1 +Morehead St. Morehead State 444 1 +Mount St. Mary's Mount St. Mary's 450 1 +Murray St. Murray State 454 1 +Navy Navy 726 1 +Nebraska Nebraska 463 1 +Omaha Nebraska-Omaha 464 1 +Nevada Nevada 466 1 +UNLV Nevada-Las Vegas 465 1 +NJIT New Jersey Tech 471 1 +New Mexico New Mexico 473 1 +New Mexico St. New Mexico State 472 1 +New Orleans New Orleans 474 1 +New York Tech New York Tech 477 1 +Niagara Niagara 482 1 +Nicholls St. Nicholls State 483 1 +Norfolk St. Norfolk State 485 1 +North Ala. North Alabama 487 1 +North Carolina North Carolina 457 1 +N.C. A&T North Carolina A&T 488 1 +N.C. Central North Carolina Central 489 1 +NC State North Carolina State 490 1 +UNC Asheville North Carolina-Asheville 456 1 +Charlotte North Carolina-Charlotte 458 1 +UNC Greensboro North Carolina-Greensboro 459 1 +UNCW North Carolina-Wilmington 460 1 +North Dakota North Dakota 494 1 +North Dakota St. North Dakota State 493 1 +North Florida North Florida 2711 1 +Northeastern Northeastern 500 1 +Northern Colo. Northern Colorado 502 1 +Northern Ill. Northern Illinois 503 1 +Northern Ky. Northern Kentucky 505 1 +Northwestern Northwestern 509 1 +Northwestern St. Northwestern State 508 1 +Notre Dame Notre Dame 513 1 +Oakland Oakland 514 1 +Ohio Ohio 519 1 +Ohio St. Ohio State 518 1 +Oklahoma Oklahoma 522 1 +Oklahoma St. Oklahoma State 521 1 +Old Dominion Old Dominion 523 1 +Oral Roberts Oral Roberts 527 1 +Oregon Oregon 529 1 +Oregon St. Oregon State 528 1 +Pacific Pacific 534 1 +Penn St. Penn State 539 1 +Penn Pennslyvania 540 1 +Pepperdine Pepperdine 541 1 +Pittsburgh Pittsburgh 545 1 +Portland Portland 551 1 +Prairie View Prairie View A&M 553 1 +Presbyterian Presbyterian 1320 1 +Princeton Princeton 554 1 +Purdue Purdue 559 1 +Quinnipiac Quinnipiac 562 1 +Radford Radford 563 1 +Rhode Island Rhode Island 572 1 +Rice Rice 574 1 +Richmond Richmond 575 1 +Rider Rider 576 1 +Rutgers Rutgers 587 1 +Sacramento St. Sacramento State 102 1 +Sacred Heart Sacred Heart 590 1 +Sam Houston St. Sam Houston State 624 1 +Samford Samford 625 1 +San Diego San Diego 627 1 +San Diego St. San Diego State 626 1 +San Francisco San Francisco 629 1 +San Jose St. San Jose State 630 1 +Santa Clara Santa Clara 631 1 +Savannah St. Savannah State 632 1 +Seattle U Seattle 1356 1 +Seton Hall Seton Hall 635 1 +Siena Siena 639 1 +South Alabama South Alabama 646 1 +South Carolina South Carolina 648 1 +USC Upstate South Carolina-Upstate 10411 1 +South Dakota St. South Dakota State 649 1 +South Fla. South Florida 651 1 +Southeast Mo. St. Southeast Missouri State 654 1 +Southeastern La. Southeastern Louisiana 655 1 +Southern U. Southern 665 1 +Southern California Southern California 657 1 +Southern Ill. Southern Illinois 659 1 +SIUE Southern Illinois-Edwardsville 660 1 +Southern Miss. Southern Mississippi 664 1 +Saint Mary's (CA) St Mary's 610 1 +St. Bonaventure St. Bonaventure 596 1 +St. John's (NY) St. John's 603 1 +Saint Joseph's St. Joseph's 606 1 +Saint Louis St. Louis 609 1 +Saint Peter's St. Peter's 617 1 +Stanford Stanford 674 1 +SFA Stephen F. Austin State 676 1 +Stetson Stetson 678 1 +Stony Brook Stony Brook 683 1 +Tarleton St. Tarleton State 1395 1 +Temple Temple 690 1 +Tennessee Tennessee 694 1 +Tennessee Tech Tennessee Tech 692 1 +UT Martin Tennessee-Martin 695 1 +Texas Texas 703 1 +Texas A&M Texas A&M 697 1 +A&M-Corpus Christi Texas A&M-Corpus Christi 26172 1 +TCU Texas Christian 698 1 +Texas Southern Texas Southern 699 1 +Texas St. Texas State 670 1 +Texas Tech Texas Tech 700 1 +UT Arlington Texas-Arlington 702 1 +UTRGV Texas-Rio Grande Valley 536 1 +UTSA Texas-San Antonio 706 1 +The Citadel The Citadel 141 1 +Toledo Toledo 709 1 +Towson Towson 711 1 +Troy Troy 716 1 +Tulane Tulane 718 1 +UC Davis UC Davis 108 1 +UC Irvine UC Irvine 109 1 +UC Riverside UC Riverside 111 1 +UC Santa Barbara UC Santa Barbara 104 1 +UCLA UCLA 110 1 +Utah Utah 732 1 +Utah Valley Utah Valley 30024 1 +VMI VMI 741 1 +Valparaiso Valparaiso 735 1 +Vanderbilt Vanderbilt 736 1 +Villanova Villanova 739 1 +Virginia Virginia 746 1 +VCU Virginia Commonwealth 740 1 +Virginia Tech Virginia Tech 742 1 +Wagner Wagner 748 1 +Wake Forest Wake Forest 749 1 +Washington Washington 756 1 +Washington St. Washington State 754 1 +West Virginia West Virginia 768 1 +Western Caro. Western Carolina 769 1 +Western Ill. Western Illinois 771 1 +Western Ky. Western Kentucky 772 1 +Western Mich. Western Michigan 774 1 +Wichita St. Wichita State 782 1 +William & Mary William and Mary 786 1 +Winthrop Winthrop 792 1 +Milwaukee Wisconsin-Milwaukee 797 1 +Wofford Wofford 2915 1 +Wright St. Wright State 810 1 +Xavier Xavier 812 1 +Yale Yale 813 1 +Youngstown St. Youngstown State 817 1 +Bellarmine 52 1 +UC San Diego 112 1 +Purdue Fort Wayne 308 1 +Merrimack 410 1 +Louisiana 671 1 +Colorado Mesa 11416 2 +Spring Hill 30191 2 +Central Mo. 130 2 +Angelo St. 25 2 +Francis Marion 1085 2 +Albany St. (SIAC) 13 2 +Drury 1057 2 +Chico St. 95 2 +Concord 1028 2 +Savannah St. 632 2 +Ill. Springfield 30050 2 +MSU Denver 413 2 +William Jewell 30120 2 +Newberry 1257 2 +West Tex. A&M 767 2 +Lubbock Christian 30177 2 +North Greenville 9223 2 +Augustana (NSIC) 41 2 +Northeastern St. 12810 2 +Charleston (MEC) 1013 2 +Minnesota St. 383 2 +Slippery Rock 643 2 +Molloy 437 2 +CSU Pueblo 2720 2 +Millersville 423 2 +Regis (RMAC) 568 2 +Okla. Baptist 30202 2 +Pittsburg St. 1314 2 +Colo. Christian 11403 2 +Adelphi 3 2 +Columbus St. 159 2 +UC-Colo. Springs 9754 2 +Ashland 35 2 +Lenoir-Rhyne 1170 2 +Miles 422 2 +Trevecca Nazarene 30002 2 +Colo. Sch. of Mines 155 2 +Quincy 561 2 +Young Harris 30154 2 +UNC Pembroke 537 2 +Alabama Huntsville 10 2 +Southern Ark. 1376 2 +Montevallo 1238 2 +Wingate 1462 2 +Maryville (GLVC) 395 2 +N.M. Highlands 8577 2 +Point Loma 30149 2 +St. Edward's 1334 2 +Mo. Southern St. 9012 2 +Tex. A&M-Kingsville 696 2 +Florida Tech 230 2 +Georgia College 1096 2 +Southern N.H. 468 2 +Cal Poly Pomona 91 2 +Queens (SAC) 11504 2 +Barton 15646 2 +Erskine 1072 2 +Chestnut Hill 21323 2 +Indiana (PSAC) 307 2 +Pace 533 2 +Tiffin 1403 2 +St. Cloud St. 598 2 +Tampa 689 2 +Rockhurst 1328 2 +Northwestern Okla. 30178 2 +Nova Southeastern 24639 2 +Delta St. 181 2 +Jefferson 543 2 +Saint Leo 608 2 +Davenport 30221 2 +Washburn 2814 2 +Notre Dame (MEC) 30126 2 +Cedarville 30124 2 +Purdue Northwest 30222 2 +Southeastern Okla. 1371 2 +UT Tyler 30028 2 +Saginaw Valley 591 2 +Cal U (PSAC) 106 2 +Carson-Newman 1000 2 +AUM 30093 2 +Mount Olive 1245 2 +Central Wash. 1010 2 +Hillsdale 280 2 +Wilmington (CACC) 1460 2 +Cal St. Monterey Bay 30055 2 +West Ga. 766 2 +Northwood 510 2 +Missouri S&T 435 2 +Franklin Pierce 241 2 +McKendree 30138 2 +Grand Valley St. 262 2 +Glenville St. 1098 2 +Cal St. San Marcos 30198 2 +Rollins 584 2 +Adams St. 929 2 +Wayne St. (GLIAC) 757 2 +Azusa Pacific 30146 2 +East Stroudsburg 197 2 +Queens (ECC) 560 2 +Belmont Abbey 2683 2 +Wheeling 12799 2 +West Virginia St. 1439 2 +Tex. A&M Int'l 30090 2 +Lee 30013 2 +Kentucky St. 332 2 +Arkansas Tech 947 2 +Minot St. 30125 2 +Southern Nazarene 30152 2 +Southwest Minn. St. 8736 2 +Cal St. San B'dino 93 2 +Union (Gulf South) 30153 2 +Anderson (SAC) 13028 2 +Southwestern Okla. 8744 2 +Seton Hill 30063 2 +Cal State LA 100 2 +St. Mary's (Lone Star) 1346 2 +Fresno Pacific 30147 2 +Cal St. Dom. Hills 92 2 +Lewis 354 2 +Henderson St. 1123 2 +Bloomsburg 65 2 +West Chester 765 2 +West Ala. 358 2 +Bloomfield 984 2 +Ouachita Baptist 1289 2 +Shorter 30151 2 +Minn. Duluth 427 2 +King (Conference Carolinas) 30051 2 +Central Okla. 1009 2 +Hawaii Pacific 2696 2 +Le Moyne 349 2 +Mercyhurst 408 2 +Newman 30054 2 +Southern Conn. St. 658 2 +St. Thomas Aquinas 1348 2 +Walsh 30141 2 +Rogers St. 30180 2 +Augusta 39 2 +Goldey-Beacom 8366 2 +Benedict 55 2 +Hawaii Hilo 2697 2 +Lynn 20794 2 +Lock Haven 360 2 +UIndy 309 2 +Eckerd 208 2 +Valdosta St. 734 2 +Lincoln Memorial 1176 2 +Mansfield 384 2 +Salem (DII Independent) 19117 2 +Sioux Falls 30128 2 +Saint Rose 1347 2 +Shippensburg 638 2 +Lane 347 2 +Malone 30137 2 +Barry 49 2 +Post 1318 2 +Caldwell 995 2 +New Haven 470 2 +American Int'l 22 2 +Emory & Henry 216 2 +Flagler 30092 2 +Harding 1116 2 +Tex. Permian Basin 30088 2 +Lander 1167 2 +Bluefield St. 985 2 +Ark.-Monticello 8411 2 +Fairmont St. 1076 2 +Mercy 407 2 +Claflin 30058 2 +North Georgia 30052 2 +Stonehill 682 2 +Fla. Southern 233 2 +Eastern N.M. 206 2 +Morehouse 445 2 +Cal St. East Bay 98 2 +Northwest Nazarene 1274 2 +Southern Wesleyan 30192 2 +Okla. Christian 30179 2 +Sonoma St. 645 2 +Southern Ind. 661 2 +Mont. St. Billings 205 2 +Ky. Wesleyan 333 2 +Chowan 8875 2 +Assumption 36 2 +Bentley 56 2 +Lindenwood 30136 2 +Tusculum 12830 2 +Mo.-St. Louis 436 2 +Cameron 996 2 +St. Anselm 593 2 +Ark.-Fort Smith 30105 2 +Ga. Southwestern 1097 2 +Gannon 246 2 +West Florida 11740 2 +Christian Brothers 1015 2 +Wayne St. (NSIC) 1433 2 +Mars Hill 1199 2 +Dominican (CACC) 8956 2 +UVA Wise 30181 2 +Felician 23157 2 +USciences 28594 2 +Mary 30075 2 +Southwest Baptist 2755 2 +Emporia St. 1071 2 +Truman St. 499 2 +CUI 30199 2 +Biola 30220 2 +Holy Names 30175 2 +Pitt.-Johnstown 546 2 +Northwest Mo. St. 507 2 +Missouri Western 9013 2 +Ohio Dominican 30119 2 +Shepherd 10870 2 +Embry-Riddle (Sunshine State) 9680 2 +East Central 8965 2 +Catawba 1001 2 +USC Aiken 11276 2 +West Va. Wesleyan 9630 2 +Upper Iowa 728 2 +Mississippi Col. 429 2 +Saint Martin's 1343 2 +Findlay 1079 2 +Virginia St. 743 2 +San Fran. St. 628 2 +Stanislaus St. 103 2 +Coker 1023 2 +Academy of Art 30123 2 +Bridgeport 74 2 +Concordia-St. Paul 9081 2 +Western Ore. 1446 2 +Winona St. 790 2 +Emmanuel (Conference Carolinas) 30193 2 +Saint Michael's 613 2 +LeMoyne-Owen 350 2 +Palm Beach Atl. 30045 2 +West Liberty 1438 2 +Minn.-Crookston 27854 2 +Clark Atlanta 144 2 +Alderson Broaddus 934 2 +Northern St. 1266 2 +Bemidji St. 54 2 +Limestone 1174 2 +Kutztown 339 2 +Tuskegee 720 2 +Fort Hays St. 9011 2 +Lincoln (ECC) 357 2 +Lake Erie 2746 2 +Clarion 143 2 +Nyack 1277 2 +Wis.-Parkside 799 2 +Davis & Elkins 174 2 +Marietta 385 3 +St. Joseph's (Skyline) 1340 3 +Wilson 12973 3 +Baldwin Wallace 46 3 +Penn St.-Abington 30114 3 +Randolph-Macon 565 3 +Montclair St. 442 3 +Rhode Island Col. 571 3 +Middlebury 420 3 +LaGrange 1162 3 +Eastern Conn. St. 200 3 +Aurora 42 3 +Kalamazoo 326 3 +Widener 783 3 +Gust. Adolphus 266 3 +La Verne 341 3 +Bethel (MIAC) 60 3 +Anna Maria 26 3 +Birmingham-So. 28593 3 +Berry 973 3 +Crown (UMAC) 30035 3 +North Central (CCIW) 492 3 +Wilmington (OAC) 1461 3 +McDaniel 773 3 +Otterbein 531 3 +Allegheny 19 3 +Wm. Paterson 787 3 +Earlham 195 3 +Pomona-Pitzer 549 3 +Fontbonne 11538 3 +Redlands 567 3 +Denison 182 3 +Chapman 134 3 +CMSV 451 3 +Webster 759 3 +SUNY Cortland 168 3 +Texas-Dallas 23121 3 +Centenary (SCAC) 125 3 +Methodist 412 3 +Trinity (SCAC) 715 3 +DePauw 177 3 +Lawrence 348 3 +Rowan 259 3 +Huntingdon 1130 3 +Ill. Wesleyan 300 3 +Tufts 717 3 +Adrian 4 3 +Roanoke 578 3 +Ithaca 313 3 +Rhodes 573 3 +Shenandoah 637 3 +Salve Regina 623 3 +Wooster 807 3 +Penn St.-Behrend 538 3 +William Peace 17094 3 +Wash. & Jeff. 751 3 +Merchant Marine 724 3 +Brandeis 73 3 +Rochester (Liberty League) 581 3 +Suffolk 684 3 +Kean 329 3 +Stevens 679 3 +Moravian 443 3 +Arcadia 966 3 +Wis.-Platteville 800 3 +Wis.-Whitewater 805 3 +Lebanon Valley 351 3 +Plattsburgh St. 547 3 +Oswego St. 530 3 +Utica 733 3 +Keystone 30047 3 +Springfield 673 3 +Northwestern-St. Paul 30031 3 +Scranton 633 3 +Buena Vista 84 3 +East. Mennonite 203 3 +Claremont-M-S 142 3 +Maryville (USA South) 396 3 +Washington Col. 753 3 +Pfeiffer 542 3 +Penn St.-Altoona 25719 3 +Skidmore 642 3 +Wash. & Lee 752 3 +Immaculata 303 3 +Union (Liberty League) 727 3 +DeSales 20 3 +SUNY Brockport 78 3 +Concordia-M'head 161 3 +Old Westbury 524 3 +Endicott 8981 3 +Grinnell 264 3 +Wittenberg 806 3 +Lynchburg 374 3 +N.C. Wesleyan 491 3 +Gettysburg 258 3 +Franklin 2694 3 +Calvin 114 3 +Colby 151 3 +Loras 364 3 +UChicago 137 3 +Wis.-La Crosse 795 3 +Spalding 23260 3 +Elmhurst 212 3 +Franklin & Marshall 239 3 +Westfield St. 777 3 +Hope 286 3 +Wilkes 784 3 +Hamilton 267 3 +Stockton 681 3 +Gwynedd Mercy 12399 3 +Swarthmore 686 3 +Wabash 747 3 +Lehman 279 3 +Sul Ross St. 1390 3 +Misericordia 16142 3 +Marymount (Atlantic East) 394 3 +Mary Hardin-Baylor 1203 3 +Grove City 265 3 +UMass Boston 401 3 +Penn St.-Berks 30044 3 +East Tex. Baptist 1062 3 +Centenary (Atlantic East) 12884 3 +Anderson (HCAC) 939 3 +Wis.-Stevens Point 802 3 +Thiel 707 3 +Vassar 737 3 +Westminster (C) 1451 3 +Penn St. Harrisburg 30081 3 +Rose-Hulman 585 3 +New England Col. 467 3 +Bridgewater St. 76 3 +Schreiner 1355 3 +Kenyon 335 3 +Ohio Northern 517 3 +Salisbury 622 3 +Catholic 124 3 +John Carroll 320 3 +Austin 953 3 +Mary Washington 390 3 +Wheaton (NEWC) 779 3 +St. Mary's (United East) 611 3 +McMurry 8530 3 +York (MAC Commonwealth) 815 3 +Penn College 30190 3 +Hardin-Simmons 271 3 +New Jersey City 319 3 +Roger Williams 583 3 +Millsaps 426 3 +Guilford 1112 3 +Cabrini 88 3 +Mass. Maritime 399 3 +Carthage 121 3 +Eureka 218 3 +Mitchell 30042 3 +NYU 479 3 +Emory 217 3 +Manhattanville 382 3 +Keuka 1159 3 +Johns Hopkins 322 3 +Wis.-Oshkosh 798 3 +Covenant 30111 3 +Delaware Valley 179 3 +Bridgewater (ODAC) 75 3 +Texas Lutheran 1400 3 +Mt. St. Joseph 8567 3 +Rutgers-Newark 589 3 +MSOE 20220 3 +Wesleyan (NESCAC) 764 3 +Ripon 577 3 +St. John Fisher 601 3 +Farmingdale St. 27892 3 +Olivet 525 3 +Wheaton (CCIW) 778 3 +Wartburg 750 3 +Benedictine (NACC) 296 3 +Puget Sound 557 3 +Brevard 30094 3 +Mount Aloysius 30036 3 +Pacific Lutheran 1297 3 +Lancaster Bible 30085 3 +Saint Vincent 30064 3 +Gallaudet 245 3 +Central (American Rivers) 126 3 +Trinity (NESCAC) 713 3 +Pacific (NWC) 2751 3 +Augustana (CCIW) 40 3 +Wis.-Stout 803 3 +Ozarks (ASC) 23008 3 +Howard Payne 2741 3 +Millikin 424 3 +Dubuque 192 3 +WashU 755 3 +Babson 45 3 +St. Joseph's (Great Northeast) 605 3 +Lewis & Clark 22235 3 +Hendrix 1124 3 +Rensselaer 570 3 +Carleton 118 3 +Nichols 484 3 +Hanover 1115 3 +Elizabethtown 211 3 +Haverford 276 3 +Concordia Wisconsin 1036 3 +Muskingum 455 3 +Mount Union 452 3 +Western New Eng. 775 3 +Luther 372 3 +JWU (Great Northeast) 22626 3 +Franciscan 30069 3 +Clarkson 146 3 +Westminster (SLIAC) 1450 3 +Transylvania 28749 3 +Husson 1133 3 +Dominican (NACC) 1332 3 +Va. Wesleyan 745 3 +Muhlenberg 453 3 +Messiah 411 3 +St. Norbert 614 3 +King's (MAC Freedom) 336 3 +Monmouth (MWC) 438 3 +Greensboro 263 3 +Pitt.-Greensburg 11839 3 +Saint John's (MIAC) 602 3 +Macalester 376 3 +TCNJ 712 3 +Willamette 785 3 +Thomas (North Atlantic) 2758 3 +Norwich 511 3 +Emerson 214 3 +North Park 496 3 +Southwestern (SCAC) 8746 3 +Alvernia 938 3 +St. Joseph's (Skyline) 30072 3 +Oberlin 515 3 +Edgewood 1066 3 +Geneva 30084 3 +Illinois Col. 297 3 +Cal Lutheran 105 3 +Wentworth 762 3 +Trine 30037 3 +Bard 962 3 +Oglethorpe 2713 3 +Alfred St. 30170 3 +Fredonia 242 3 +Rockford 582 3 +Whitman 780 3 +Cobleskill St. 30083 3 +Bethany Lutheran 30038 3 +SUNY Maritime 478 3 +Neb. Wesleyan 462 3 +St. Lawrence 607 3 +Cairn 1305 3 +Chris. Newport 139 3 +Lakeland 1164 3 +Wis.-Superior 804 3 +Bowdoin 69 3 +Amherst 24 3 +Worcester St. 809 3 +Hilbert 8398 3 +Houghton 30160 3 +Eastern 8968 3 +Me.-Farmington 379 3 +IIT 30172 3 +Centre 132 3 +Capital 117 3 +SUNY New Paltz 475 3 +Hampden-Sydney 269 3 +Beloit 53 3 +MIT 398 3 +Southern Va. 30164 3 +Salem St. 621 3 +Lesley 24317 3 +Bluffton 987 3 +FDU-Florham 221 3 +Eastern Nazarene 1064 3 +Neumann 1254 3 +WPI 808 3 +Dean 30219 3 +Rosemont 15882 3 +Pitt.-Bradford 1315 3 +Marian (NACC) 1196 3 +Simpson 641 3 +Marywood 397 3 +Piedmont 21830 3 +UMass Dartmouth 656 3 +Williams 789 3 +Juniata 325 3 +Averett 44 3 +Linfield 1179 3 +Ramapo 564 3 +RIT 580 3 +Elmira 213 3 +Concordia Chicago 160 3 +Bates 50 3 +St. Thomas (SCAC) 2810 3 +Cazenovia 23624 3 +Ohio Wesleyan 520 3 +Minn.-Morris 1226 3 +Mt. St. Mary (Skyline) 1468 3 +Valley Forge 30166 3 +Plymouth St. 548 3 +Bob Jones 30232 3 +CWRU 122 3 +Baruch 58 3 +Augsburg 38 3 +Southern Me. 662 3 +Ferrum 225 3 +Heidelberg 278 3 +Wis. Lutheran 8911 3 +St. Scholastica 618 3 +Mary Baldwin 389 3 +Elms 532 3 +CCNY 480 3 +Fitchburg St. 227 3 +Rutgers-Camden 588 3 +Dickinson 185 3 +Framingham St. 238 3 +Wis.-Eau Claire 793 3 +Gordon 1099 3 +La Roche 1163 3 +Chatham 10972 3 +Stevenson 21852 3 +Blackburn 64 3 +Belhaven 30197 3 +Alma 21 3 +MCLA 486 3 +Colby-Sawyer 152 3 +Susquehanna 685 3 +Greenville 1111 3 +Lasell 8486 3 +Manchester 1192 3 +Coast Guard 722 3 +Cornell College 166 3 +North Central (UMAC) 30039 3 +Carroll (CCIW) 120 3 +SUNY Oneonta 526 3 +Saint Mary's (MIAC) 612 3 +Ursinus 730 3 +Clark (NEWC) 145 3 +Purchase 30029 3 +Albertus Magnus 2798 3 +SUNY Poly 9500 3 +Russell Sage 11036 3 +SUNY Canton 30165 3 +Northland 1267 3 +Concordia (ASC) 24400 3 +Occidental 516 3 +Bethany (PAC) 59 3 +Waynesburg 1434 3 +Me.-Presque Isle 30040 3 +George Fox 1094 3 +St. Olaf 615 3 +Whittier 781 3 +Drew 190 3 +NVU-Lyndon 30065 3 +Defiance 1050 3 +Hiram 281 3 +Hamline 268 3 +Caltech 89 3 +Dallas 1044 3 +Western Conn. St. 770 3 +Knox 337 3 +MUW 431 3 +Hood 8404 3 +Martin Luther 8597 3 +Sewanee 652 3 +Wells 761 3 +LeTourneau 8490 3 +Albion 15 3 +Castleton 123 3 +Berea 30171 3 +Whitworth 1454 3 +Clarks Summit 958 3 +Curry 170 3 +John Jay 321 3 +Medaille 23725 3 +Coe 150 3 +Maranatha Baptist 1194 3 +Yeshiva 814 3 +Keene St. 330 3 +Rivier 18422 3 +Finlandia 30032 3 +Principia 555 3 +Albright 16 3 +=================================== ================================= ============ =========== diff --git a/docs/source/season_stats.rst b/docs/source/season_stats.rst index bc76953..05955e5 100644 --- a/docs/source/season_stats.rst +++ b/docs/source/season_stats.rst @@ -1,3 +1,4 @@ +============ Season Stats ============ diff --git a/examples.ipynb b/examples.ipynb new file mode 100644 index 0000000..81a4b4e --- /dev/null +++ b/examples.ipynb @@ -0,0 +1,12245 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + " \n", + " " + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "import numpy as np\n", + "from collegebaseball import *\n", + "import pandas as pd\n", + "import plotly.express as px\n", + "import plotly.graph_objects as go\n", + "from plotly.subplots import make_subplots\n", + "import plotly.offline as pyo\n", + "pyo.init_notebook_mode()\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Example: Brooks Lee's college stats " + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
seasonPAwOBA
0201920.646
120202430.456
220212640.538
\n", + "
" + ], + "text/plain": [ + " season PA wOBA\n", + "0 2019 2 0.646\n", + "1 2020 243 0.456\n", + "2 2021 264 0.538" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "stats_player_seq = lookup_player('Brooks Lee', 'Cal Poly')\n", + "ncaa_career_stats(stats_player_seq, 'batting')[['season', 'PA', 'wOBA']]" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
dateopponent_namePAwOBA
002/18/2022Washington40.237
102/19/2022Washington40.196
202/20/2022Washington30.895
302/22/2022Fresno St.50.869
402/26/2022Missouri St.40.671
502/27/2022Missouri St.50.537
602/27/2022Missouri St.51.128
703/02/2022Portland41.086
803/04/2022UNLV40.997
903/05/2022UNLV41.213
1003/06/2022UNLV40.000
1103/08/2022San Jose St.50.418
1203/11/2022Harvard50.261
1303/12/2022Harvard51.036
1403/12/2022Harvard40.522
1503/13/2022Harvard40.326
1603/18/2022CSUN40.652
1703/19/2022CSUN50.643
1803/20/2022CSUN30.840
1903/22/2022California60.488
2003/25/2022UC San Diego50.347
2103/26/2022UC San Diego50.347
2203/27/2022UC San Diego40.868
2303/29/2022Santa Clara50.570
2404/01/2022Utah Tech50.553
2504/02/2022Utah Tech30.895
2604/02/2022Utah Tech50.418
2704/03/2022Utah Tech50.656
2804/05/2022California50.608
2904/08/2022Long Beach St.40.494
3004/09/2022Long Beach St.40.000
3104/10/2022Long Beach St.40.671
3204/14/2022UC Irvine40.000
3304/15/2022UC Irvine50.694
3404/16/2022UC Irvine40.434
3504/19/2022Stanford60.131
3604/22/2022UC Riverside60.420
3704/23/2022UC Riverside60.724
3804/24/2022UC Riverside50.190
3904/26/2022Santa Clara40.000
4004/29/2022UC Santa Barbara40.589
4104/30/2022UC Santa Barbara40.732
4205/01/2022UC Santa Barbara40.196
4305/03/2022Fresno St.40.494
4405/06/2022CSU Bakersfield60.376
4505/07/2022CSU Bakersfield40.868
4605/08/2022CSU Bakersfield50.351
4705/10/2022Pepperdine60.967
4805/13/2022Cal St. Fullerton50.556
4905/14/2022Cal St. Fullerton50.347
5005/15/2022Cal St. Fullerton40.326
5105/17/2022Pepperdine60.488
5205/20/2022UC Davis41.343
5305/21/2022UC Davis50.396
5405/22/2022UC Davis40.969
5505/26/2022Hawaii40.196
5605/27/2022Hawaii40.196
5705/28/2022Hawaii50.261
\n", + "
" + ], + "text/plain": [ + " date opponent_name PA wOBA\n", + "0 02/18/2022 Washington 4 0.237\n", + "1 02/19/2022 Washington 4 0.196\n", + "2 02/20/2022 Washington 3 0.895\n", + "3 02/22/2022 Fresno St. 5 0.869\n", + "4 02/26/2022 Missouri St. 4 0.671\n", + "5 02/27/2022 Missouri St. 5 0.537\n", + "6 02/27/2022 Missouri St. 5 1.128\n", + "7 03/02/2022 Portland 4 1.086\n", + "8 03/04/2022 UNLV 4 0.997\n", + "9 03/05/2022 UNLV 4 1.213\n", + "10 03/06/2022 UNLV 4 0.000\n", + "11 03/08/2022 San Jose St. 5 0.418\n", + "12 03/11/2022 Harvard 5 0.261\n", + "13 03/12/2022 Harvard 5 1.036\n", + "14 03/12/2022 Harvard 4 0.522\n", + "15 03/13/2022 Harvard 4 0.326\n", + "16 03/18/2022 CSUN 4 0.652\n", + "17 03/19/2022 CSUN 5 0.643\n", + "18 03/20/2022 CSUN 3 0.840\n", + "19 03/22/2022 California 6 0.488\n", + "20 03/25/2022 UC San Diego 5 0.347\n", + "21 03/26/2022 UC San Diego 5 0.347\n", + "22 03/27/2022 UC San Diego 4 0.868\n", + "23 03/29/2022 Santa Clara 5 0.570\n", + "24 04/01/2022 Utah Tech 5 0.553\n", + "25 04/02/2022 Utah Tech 3 0.895\n", + "26 04/02/2022 Utah Tech 5 0.418\n", + "27 04/03/2022 Utah Tech 5 0.656\n", + "28 04/05/2022 California 5 0.608\n", + "29 04/08/2022 Long Beach St. 4 0.494\n", + "30 04/09/2022 Long Beach St. 4 0.000\n", + "31 04/10/2022 Long Beach St. 4 0.671\n", + "32 04/14/2022 UC Irvine 4 0.000\n", + "33 04/15/2022 UC Irvine 5 0.694\n", + "34 04/16/2022 UC Irvine 4 0.434\n", + "35 04/19/2022 Stanford 6 0.131\n", + "36 04/22/2022 UC Riverside 6 0.420\n", + "37 04/23/2022 UC Riverside 6 0.724\n", + "38 04/24/2022 UC Riverside 5 0.190\n", + "39 04/26/2022 Santa Clara 4 0.000\n", + "40 04/29/2022 UC Santa Barbara 4 0.589\n", + "41 04/30/2022 UC Santa Barbara 4 0.732\n", + "42 05/01/2022 UC Santa Barbara 4 0.196\n", + "43 05/03/2022 Fresno St. 4 0.494\n", + "44 05/06/2022 CSU Bakersfield 6 0.376\n", + "45 05/07/2022 CSU Bakersfield 4 0.868\n", + "46 05/08/2022 CSU Bakersfield 5 0.351\n", + "47 05/10/2022 Pepperdine 6 0.967\n", + "48 05/13/2022 Cal St. Fullerton 5 0.556\n", + "49 05/14/2022 Cal St. Fullerton 5 0.347\n", + "50 05/15/2022 Cal St. Fullerton 4 0.326\n", + "51 05/17/2022 Pepperdine 6 0.488\n", + "52 05/20/2022 UC Davis 4 1.343\n", + "53 05/21/2022 UC Davis 5 0.396\n", + "54 05/22/2022 UC Davis 4 0.969\n", + "55 05/26/2022 Hawaii 4 0.196\n", + "56 05/27/2022 Hawaii 4 0.196\n", + "57 05/28/2022 Hawaii 5 0.261" + ] + }, + "execution_count": 16, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "stats_player_seq = lookup_player('Brooks Lee', 'Cal Poly')\n", + "ncaa_player_game_logs(stats_player_seq, 2022, 'batting')[['date', 'opponent_name', 'PA', 'wOBA']]\n" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
RABH2B3BTBHRRBIBBHBP...OPSISOHR/PAK/PABB/PAK/BBBABIPwOBAwRAAwRC
0164217602611563...1.1100.2140.0190.1130.1131.0000.4320.5017.24714.720
16328001426105...0.9170.1880.0420.1460.2080.7000.2610.4504.28711.055
2123916512611072...1.1880.2570.0210.0830.1460.5710.4410.5408.30515.073
343181090455...0.7290.0320.0000.1710.1221.4000.3330.3911.4117.192
41238160019112101...1.0400.0790.0200.0800.2000.4000.4550.4996.74413.794
58341121150833...0.8560.1170.0000.2440.0733.3330.4400.4072.0217.802
69371240191832...0.9190.1900.0240.2380.0713.3330.4230.4262.8138.735
7133510111921373...0.9690.2570.0430.1280.1490.8570.2760.4373.62910.256
8113814501901060...0.9440.1320.0000.1560.1331.1670.4380.4423.68410.029
913851060161...0.4250.0260.0000.3780.1332.8330.2380.238-4.8561.489
10433930120491...0.8060.0910.0000.1630.2090.7780.3460.4102.2408.303
11134418202621241...1.0600.1820.0410.2240.0822.7500.5160.4855.97112.880
1232963090332...0.6240.1030.0000.1430.0861.6670.2400.309-1.4653.470
1303150050030...0.3960.0000.0000.1760.0882.0000.2000.210-4.5540.240
1432640040271...0.5070.0000.0000.2650.2061.2860.2350.300-1.7083.086
1553063090540...0.5940.1000.0000.1760.1181.5000.2500.294-1.8982.896
16153414602621462...1.2770.3530.0470.0930.1400.6670.4140.5568.08014.143
17143114113251470...1.5850.5800.1320.0790.1840.4290.3910.65410.60515.963
1810581900221955...0.8050.0510.0150.3090.0744.2000.5000.3982.78312.371
1953250081541...0.5200.0940.0270.1620.1081.5000.1600.263-3.1322.085
20533920141554...0.8530.1510.0240.1430.1191.2000.3080.4172.4618.383
21435810121334...0.7000.1140.0240.2620.0713.6670.3040.348-0.2345.688
2243272090372...0.6620.0620.0000.3100.1671.8570.3680.347-0.2735.649
2312661070000...0.4910.0380.0000.1850.0000.0000.2860.224-3.2650.542
2402650050020...0.4420.0000.0000.1430.0712.0000.2270.226-3.3340.614
2523260060251...0.5040.0000.0000.2370.1321.8000.2610.276-2.7572.601
264331131160400...0.8090.1520.0000.2060.0000.0000.4230.3590.1584.952
2742320051490...0.5500.1300.0300.1820.2730.6670.0620.305-1.5043.149
2823351091220...0.4730.1210.0290.2290.0574.0000.1670.220-4.3630.572
2902932050051...0.4290.0690.0000.1430.1431.0000.1250.240-3.7121.223
3023472090220...0.5150.0590.0000.2780.0565.0000.2920.249-3.5161.560
3103250170001...0.4010.0630.0000.2120.0000.0000.2000.189-5.065-0.412
325331010110430...0.6750.0300.0000.2370.0793.0000.4000.322-1.1314.227
33123411702421282...1.1730.3820.0440.1330.1780.7500.3460.5116.57212.917
346351030161641...0.8470.1710.0240.2200.0982.2500.3600.3800.9926.773
356401120161640...0.7410.1250.0230.2950.0913.2500.3850.349-0.2055.999
36238620111251...0.5780.1310.0220.1560.1111.4000.1670.272-3.4332.912
3702920020011...0.1980.0000.0000.2580.0328.0000.0950.113-6.950-2.579
3832731040231...0.3670.0370.0000.1250.0941.3330.1250.201-4.554-0.042
39534940161541...0.8300.2060.0260.2310.1032.2500.3330.3851.1256.624
40032640100021...0.5690.1240.0000.3140.0575.5000.2860.274-2.6052.330
41533721110560...0.6660.1210.0000.2310.1541.5000.2920.329-0.9074.592
42431820131420...0.7220.1610.0300.3030.0615.0000.3500.331-0.7063.947
43331610101330...0.5800.1290.0290.2860.0863.3330.2380.270-2.7352.200
44434800173440...0.8160.2650.0790.4210.1054.0000.3330.3610.2475.605
457326001223150...0.8220.1870.0430.2770.3190.8670.2350.4172.7549.381
46124416102321156...1.0700.1590.0380.1890.0942.0000.4380.4987.10014.573
47433700101471...0.6930.0910.0240.2200.1711.2860.2610.342-0.4585.323
484361040140452...0.7840.1110.0000.1160.1161.0000.3230.3861.2807.343
49931830141862...0.8520.1940.0250.2000.1501.3330.3040.4031.8237.463
50533920110553...0.7380.0600.0000.2380.1192.0000.3910.3740.7816.703
516349101316102...0.8200.1170.0210.2290.2081.1000.3480.4062.3229.090
52335721141321...0.6560.2000.0260.0770.0511.5000.1940.294-2.1773.322
5323120051251...0.3770.0960.0270.2970.1352.2000.0530.208-5.0250.192
5432971080240...0.6000.0350.0000.2650.1182.2500.3330.300-1.7083.086
558401440211821...0.9110.1750.0230.2050.0454.5000.4190.4132.4158.619
\n", + "

56 rows × 48 columns

\n", + "
" + ], + "text/plain": [ + " R AB H 2B 3B TB HR RBI BB HBP ... OPS ISO HR/PA K/PA \\\n", + "0 16 42 17 6 0 26 1 15 6 3 ... 1.110 0.214 0.019 0.113 \n", + "1 6 32 8 0 0 14 2 6 10 5 ... 0.917 0.188 0.042 0.146 \n", + "2 12 39 16 5 1 26 1 10 7 2 ... 1.188 0.257 0.021 0.083 \n", + "3 4 31 8 1 0 9 0 4 5 5 ... 0.729 0.032 0.000 0.171 \n", + "4 12 38 16 0 0 19 1 12 10 1 ... 1.040 0.079 0.020 0.080 \n", + "5 8 34 11 2 1 15 0 8 3 3 ... 0.856 0.117 0.000 0.244 \n", + "6 9 37 12 4 0 19 1 8 3 2 ... 0.919 0.190 0.024 0.238 \n", + "7 13 35 10 1 1 19 2 13 7 3 ... 0.969 0.257 0.043 0.128 \n", + "8 11 38 14 5 0 19 0 10 6 0 ... 0.944 0.132 0.000 0.156 \n", + "9 1 38 5 1 0 6 0 1 6 1 ... 0.425 0.026 0.000 0.378 \n", + "10 4 33 9 3 0 12 0 4 9 1 ... 0.806 0.091 0.000 0.163 \n", + "11 13 44 18 2 0 26 2 12 4 1 ... 1.060 0.182 0.041 0.224 \n", + "12 3 29 6 3 0 9 0 3 3 2 ... 0.624 0.103 0.000 0.143 \n", + "13 0 31 5 0 0 5 0 0 3 0 ... 0.396 0.000 0.000 0.176 \n", + "14 3 26 4 0 0 4 0 2 7 1 ... 0.507 0.000 0.000 0.265 \n", + "15 5 30 6 3 0 9 0 5 4 0 ... 0.594 0.100 0.000 0.176 \n", + "16 15 34 14 6 0 26 2 14 6 2 ... 1.277 0.353 0.047 0.093 \n", + "17 14 31 14 1 1 32 5 14 7 0 ... 1.585 0.580 0.132 0.079 \n", + "18 10 58 19 0 0 22 1 9 5 5 ... 0.805 0.051 0.015 0.309 \n", + "19 5 32 5 0 0 8 1 5 4 1 ... 0.520 0.094 0.027 0.162 \n", + "20 5 33 9 2 0 14 1 5 5 4 ... 0.853 0.151 0.024 0.143 \n", + "21 4 35 8 1 0 12 1 3 3 4 ... 0.700 0.114 0.024 0.262 \n", + "22 4 32 7 2 0 9 0 3 7 2 ... 0.662 0.062 0.000 0.310 \n", + "23 1 26 6 1 0 7 0 0 0 0 ... 0.491 0.038 0.000 0.185 \n", + "24 0 26 5 0 0 5 0 0 2 0 ... 0.442 0.000 0.000 0.143 \n", + "25 2 32 6 0 0 6 0 2 5 1 ... 0.504 0.000 0.000 0.237 \n", + "26 4 33 11 3 1 16 0 4 0 0 ... 0.809 0.152 0.000 0.206 \n", + "27 4 23 2 0 0 5 1 4 9 0 ... 0.550 0.130 0.030 0.182 \n", + "28 2 33 5 1 0 9 1 2 2 0 ... 0.473 0.121 0.029 0.229 \n", + "29 0 29 3 2 0 5 0 0 5 1 ... 0.429 0.069 0.000 0.143 \n", + "30 2 34 7 2 0 9 0 2 2 0 ... 0.515 0.059 0.000 0.278 \n", + "31 0 32 5 0 1 7 0 0 0 1 ... 0.401 0.063 0.000 0.212 \n", + "32 5 33 10 1 0 11 0 4 3 0 ... 0.675 0.030 0.000 0.237 \n", + "33 12 34 11 7 0 24 2 12 8 2 ... 1.173 0.382 0.044 0.133 \n", + "34 6 35 10 3 0 16 1 6 4 1 ... 0.847 0.171 0.024 0.220 \n", + "35 6 40 11 2 0 16 1 6 4 0 ... 0.741 0.125 0.023 0.295 \n", + "36 2 38 6 2 0 11 1 2 5 1 ... 0.578 0.131 0.022 0.156 \n", + "37 0 29 2 0 0 2 0 0 1 1 ... 0.198 0.000 0.000 0.258 \n", + "38 3 27 3 1 0 4 0 2 3 1 ... 0.367 0.037 0.000 0.125 \n", + "39 5 34 9 4 0 16 1 5 4 1 ... 0.830 0.206 0.026 0.231 \n", + "40 0 32 6 4 0 10 0 0 2 1 ... 0.569 0.124 0.000 0.314 \n", + "41 5 33 7 2 1 11 0 5 6 0 ... 0.666 0.121 0.000 0.231 \n", + "42 4 31 8 2 0 13 1 4 2 0 ... 0.722 0.161 0.030 0.303 \n", + "43 3 31 6 1 0 10 1 3 3 0 ... 0.580 0.129 0.029 0.286 \n", + "44 4 34 8 0 0 17 3 4 4 0 ... 0.816 0.265 0.079 0.421 \n", + "45 7 32 6 0 0 12 2 3 15 0 ... 0.822 0.187 0.043 0.277 \n", + "46 12 44 16 1 0 23 2 11 5 6 ... 1.070 0.159 0.038 0.189 \n", + "47 4 33 7 0 0 10 1 4 7 1 ... 0.693 0.091 0.024 0.220 \n", + "48 4 36 10 4 0 14 0 4 5 2 ... 0.784 0.111 0.000 0.116 \n", + "49 9 31 8 3 0 14 1 8 6 2 ... 0.852 0.194 0.025 0.200 \n", + "50 5 33 9 2 0 11 0 5 5 3 ... 0.738 0.060 0.000 0.238 \n", + "51 6 34 9 1 0 13 1 6 10 2 ... 0.820 0.117 0.021 0.229 \n", + "52 3 35 7 2 1 14 1 3 2 1 ... 0.656 0.200 0.026 0.077 \n", + "53 2 31 2 0 0 5 1 2 5 1 ... 0.377 0.096 0.027 0.297 \n", + "54 3 29 7 1 0 8 0 2 4 0 ... 0.600 0.035 0.000 0.265 \n", + "55 8 40 14 4 0 21 1 8 2 1 ... 0.911 0.175 0.023 0.205 \n", + "\n", + " BB/PA K/BB BABIP wOBA wRAA wRC \n", + "0 0.113 1.000 0.432 0.501 7.247 14.720 \n", + "1 0.208 0.700 0.261 0.450 4.287 11.055 \n", + "2 0.146 0.571 0.441 0.540 8.305 15.073 \n", + "3 0.122 1.400 0.333 0.391 1.411 7.192 \n", + "4 0.200 0.400 0.455 0.499 6.744 13.794 \n", + "5 0.073 3.333 0.440 0.407 2.021 7.802 \n", + "6 0.071 3.333 0.423 0.426 2.813 8.735 \n", + "7 0.149 0.857 0.276 0.437 3.629 10.256 \n", + "8 0.133 1.167 0.438 0.442 3.684 10.029 \n", + "9 0.133 2.833 0.238 0.238 -4.856 1.489 \n", + "10 0.209 0.778 0.346 0.410 2.240 8.303 \n", + "11 0.082 2.750 0.516 0.485 5.971 12.880 \n", + "12 0.086 1.667 0.240 0.309 -1.465 3.470 \n", + "13 0.088 2.000 0.200 0.210 -4.554 0.240 \n", + "14 0.206 1.286 0.235 0.300 -1.708 3.086 \n", + "15 0.118 1.500 0.250 0.294 -1.898 2.896 \n", + "16 0.140 0.667 0.414 0.556 8.080 14.143 \n", + "17 0.184 0.429 0.391 0.654 10.605 15.963 \n", + "18 0.074 4.200 0.500 0.398 2.783 12.371 \n", + "19 0.108 1.500 0.160 0.263 -3.132 2.085 \n", + "20 0.119 1.200 0.308 0.417 2.461 8.383 \n", + "21 0.071 3.667 0.304 0.348 -0.234 5.688 \n", + "22 0.167 1.857 0.368 0.347 -0.273 5.649 \n", + "23 0.000 0.000 0.286 0.224 -3.265 0.542 \n", + "24 0.071 2.000 0.227 0.226 -3.334 0.614 \n", + "25 0.132 1.800 0.261 0.276 -2.757 2.601 \n", + "26 0.000 0.000 0.423 0.359 0.158 4.952 \n", + "27 0.273 0.667 0.062 0.305 -1.504 3.149 \n", + "28 0.057 4.000 0.167 0.220 -4.363 0.572 \n", + "29 0.143 1.000 0.125 0.240 -3.712 1.223 \n", + "30 0.056 5.000 0.292 0.249 -3.516 1.560 \n", + "31 0.000 0.000 0.200 0.189 -5.065 -0.412 \n", + "32 0.079 3.000 0.400 0.322 -1.131 4.227 \n", + "33 0.178 0.750 0.346 0.511 6.572 12.917 \n", + "34 0.098 2.250 0.360 0.380 0.992 6.773 \n", + "35 0.091 3.250 0.385 0.349 -0.205 5.999 \n", + "36 0.111 1.400 0.167 0.272 -3.433 2.912 \n", + "37 0.032 8.000 0.095 0.113 -6.950 -2.579 \n", + "38 0.094 1.333 0.125 0.201 -4.554 -0.042 \n", + "39 0.103 2.250 0.333 0.385 1.125 6.624 \n", + "40 0.057 5.500 0.286 0.274 -2.605 2.330 \n", + "41 0.154 1.500 0.292 0.329 -0.907 4.592 \n", + "42 0.061 5.000 0.350 0.331 -0.706 3.947 \n", + "43 0.086 3.333 0.238 0.270 -2.735 2.200 \n", + "44 0.105 4.000 0.333 0.361 0.247 5.605 \n", + "45 0.319 0.867 0.235 0.417 2.754 9.381 \n", + "46 0.094 2.000 0.438 0.498 7.100 14.573 \n", + "47 0.171 1.286 0.261 0.342 -0.458 5.323 \n", + "48 0.116 1.000 0.323 0.386 1.280 7.343 \n", + "49 0.150 1.333 0.304 0.403 1.823 7.463 \n", + "50 0.119 2.000 0.391 0.374 0.781 6.703 \n", + "51 0.208 1.100 0.348 0.406 2.322 9.090 \n", + "52 0.051 1.500 0.194 0.294 -2.177 3.322 \n", + "53 0.135 2.200 0.053 0.208 -5.025 0.192 \n", + "54 0.118 2.250 0.333 0.300 -1.708 3.086 \n", + "55 0.045 4.500 0.419 0.413 2.415 8.619 \n", + "\n", + "[56 rows x 48 columns]" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ncaa_team_game_logs('Alabama', 2018, 'batting')" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Jerseystats_player_seqnameYrposGPGSRABH...OPSISOHR/PAK/PABB/PAK/BBBABIPwOBAwRAAwRC
10282661707Ace WhiteheadFrP25171510...1.5060.1330.0000.1760.1181.5000.8330.6935.6588.327
4172471763Ivan MelendezJrINF67675319574...1.3350.4310.0920.1420.1580.8950.3660.56849.25086.930
3142309972Murphy StehlySrINF68685021082...1.1450.3100.0630.1550.0552.8460.4160.50232.80270.168
12102480203Kimble SchuesslerSoC1743156...1.0440.2000.0560.2780.1112.5000.5560.4611.7274.553
202309986Trey FaltineSoINF69695019055...0.9590.2640.0520.3360.1053.2080.4170.43215.19751.150
072309992Douglas HodoSoOF69696021868...0.9460.2200.0300.2160.1341.6110.3900.43017.23759.313
9302120673Eric KennedyJrOF45423613945...0.9370.2080.0430.1410.0981.4380.3450.4259.65235.243
8441872493Austin ToddSrOF51493214247...0.9350.1760.0350.1040.1330.7830.3420.42610.42137.582
651997666Skyler MessingerSrINF67653420268...0.9120.1930.0390.2370.0613.8570.4150.4089.54445.340
782471765Dylan CampbellSoINF65473012934...0.8760.2630.0590.1840.1121.6470.2600.3883.25927.123
142309989Silas ArdoinSoC69683318943...0.8160.2220.0430.1700.1401.2120.2340.3803.11940.014
5192471769Mitchell DalySoINF67593016338...0.6820.1110.0100.1840.1241.4800.2860.329-7.79823.759
15152309996Peyton PowellSoC61072...0.6610.0000.0000.5000.1254.0000.6670.336-0.2531.003
11272485662Jack O'DowdSoINF2176346...0.5650.0890.0250.1500.1251.2000.1850.286-3.3082.972
1362661687Gavin KashFrINF1641203...0.4610.0500.0000.3910.0439.0000.2730.243-2.9120.699
14292310015Cam ConstantineSoOF101040...0.0000.0000.0000.7500.0000.0000.0000.000-1.499-0.871
16542661717Cameron DaytonJrP50020...0.0000.0000.0000.5000.0000.0000.0000.000-0.749-0.435
\n", + "

17 rows × 43 columns

\n", + "
" + ], + "text/plain": [ + " Jersey stats_player_seq name Yr pos GP GS R AB H \\\n", + "10 28 2661707 Ace Whitehead Fr P 25 1 7 15 10 \n", + "4 17 2471763 Ivan Melendez Jr INF 67 67 53 195 74 \n", + "3 14 2309972 Murphy Stehly Sr INF 68 68 50 210 82 \n", + "12 10 2480203 Kimble Schuessler So C 17 4 3 15 6 \n", + "2 0 2309986 Trey Faltine So INF 69 69 50 190 55 \n", + "0 7 2309992 Douglas Hodo So OF 69 69 60 218 68 \n", + "9 30 2120673 Eric Kennedy Jr OF 45 42 36 139 45 \n", + "8 44 1872493 Austin Todd Sr OF 51 49 32 142 47 \n", + "6 5 1997666 Skyler Messinger Sr INF 67 65 34 202 68 \n", + "7 8 2471765 Dylan Campbell So INF 65 47 30 129 34 \n", + "1 4 2309989 Silas Ardoin So C 69 68 33 189 43 \n", + "5 19 2471769 Mitchell Daly So INF 67 59 30 163 38 \n", + "15 15 2309996 Peyton Powell So C 6 1 0 7 2 \n", + "11 27 2485662 Jack O'Dowd So INF 21 7 6 34 6 \n", + "13 6 2661687 Gavin Kash Fr INF 16 4 1 20 3 \n", + "14 29 2310015 Cam Constantine So OF 10 1 0 4 0 \n", + "16 54 2661717 Cameron Dayton Jr P 5 0 0 2 0 \n", + "\n", + " ... OPS ISO HR/PA K/PA BB/PA K/BB BABIP wOBA wRAA \\\n", + "10 ... 1.506 0.133 0.000 0.176 0.118 1.500 0.833 0.693 5.658 \n", + "4 ... 1.335 0.431 0.092 0.142 0.158 0.895 0.366 0.568 49.250 \n", + "3 ... 1.145 0.310 0.063 0.155 0.055 2.846 0.416 0.502 32.802 \n", + "12 ... 1.044 0.200 0.056 0.278 0.111 2.500 0.556 0.461 1.727 \n", + "2 ... 0.959 0.264 0.052 0.336 0.105 3.208 0.417 0.432 15.197 \n", + "0 ... 0.946 0.220 0.030 0.216 0.134 1.611 0.390 0.430 17.237 \n", + "9 ... 0.937 0.208 0.043 0.141 0.098 1.438 0.345 0.425 9.652 \n", + "8 ... 0.935 0.176 0.035 0.104 0.133 0.783 0.342 0.426 10.421 \n", + "6 ... 0.912 0.193 0.039 0.237 0.061 3.857 0.415 0.408 9.544 \n", + "7 ... 0.876 0.263 0.059 0.184 0.112 1.647 0.260 0.388 3.259 \n", + "1 ... 0.816 0.222 0.043 0.170 0.140 1.212 0.234 0.380 3.119 \n", + "5 ... 0.682 0.111 0.010 0.184 0.124 1.480 0.286 0.329 -7.798 \n", + "15 ... 0.661 0.000 0.000 0.500 0.125 4.000 0.667 0.336 -0.253 \n", + "11 ... 0.565 0.089 0.025 0.150 0.125 1.200 0.185 0.286 -3.308 \n", + "13 ... 0.461 0.050 0.000 0.391 0.043 9.000 0.273 0.243 -2.912 \n", + "14 ... 0.000 0.000 0.000 0.750 0.000 0.000 0.000 0.000 -1.499 \n", + "16 ... 0.000 0.000 0.000 0.500 0.000 0.000 0.000 0.000 -0.749 \n", + "\n", + " wRC \n", + "10 8.327 \n", + "4 86.930 \n", + "3 70.168 \n", + "12 4.553 \n", + "2 51.150 \n", + "0 59.313 \n", + "9 35.243 \n", + "8 37.582 \n", + "6 45.340 \n", + "7 27.123 \n", + "1 40.014 \n", + "5 23.759 \n", + "15 1.003 \n", + "11 2.972 \n", + "13 0.699 \n", + "14 -0.871 \n", + "16 -0.435 \n", + "\n", + "[17 rows x 43 columns]" + ] + }, + "execution_count": 29, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ncaa_team_stats('Texas', 2022, 'batting', split='vs_RH').sort_values('OPS', ascending=False)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Jerseystats_player_seqnameYrposGPGSRABH...OPSISOHR/PAK/PABB/PAK/BBBABIPwOBAwRAAwRC
4172471763Ivan MelendezJrINF6767225322...1.6600.6420.1470.2500.2061.2140.4620.67621.45232.128
142309989Silas ArdoinSoC6968155122...1.2200.3140.0330.0980.0981.0000.4440.5259.84019.417
651997666Skyler MessingerSrINF6765124823...1.1970.2090.0360.0730.0731.0000.4880.5329.26517.900
11272485662Jack O'DowdSoINF217253...1.1710.0000.0000.0000.1430.0000.6000.5191.0862.185
072309992Douglas HodoSoOF6969136422...0.9340.1870.0280.2220.0832.6670.4260.4254.26315.567
202309986Trey FaltineSoINF6969105113...0.9040.2940.0480.4350.1453.0000.4550.3971.89911.633
3142309972Murphy StehlySrINF6868156820...0.8950.2500.0540.0810.0541.5000.2760.4002.49314.111
782471765Dylan CampbellSoINF6547104713...0.8280.1270.0170.1360.2030.6670.3160.4042.22911.492
5192471769Mitchell DalySoINF675944411...0.8000.2050.0340.1720.1211.4290.2570.356-0.6518.455
8441872493Austin ToddSrOF514964515...0.7190.0670.0000.0430.0000.0000.3410.326-1.9675.412
1362661687Gavin KashFrINF164031...0.6660.0000.0000.0000.0000.0000.3330.317-0.1530.318
12102480203Kimble SchuesslerSoC174051...0.5330.0000.0000.1670.1671.0000.2500.289-0.4780.464
9302120673Eric KennedyJrOF45426316...0.4500.0000.0000.2050.1032.0000.2500.227-5.5740.549
10282661707Ace WhiteheadFrP251130...0.2500.0000.0000.5000.2502.0000.0000.196-0.698-0.070
14292310015Cam ConstantineSoOF101030...0.2000.0000.0000.2000.0000.0000.0000.161-1.052-0.267
15152309996Peyton PowellSoC61010...0.0000.0000.0000.0000.0000.0000.0000.000-0.375-0.218
\n", + "

16 rows × 43 columns

\n", + "
" + ], + "text/plain": [ + " Jersey stats_player_seq name Yr pos GP GS R AB H \\\n", + "4 17 2471763 Ivan Melendez Jr INF 67 67 22 53 22 \n", + "1 4 2309989 Silas Ardoin So C 69 68 15 51 22 \n", + "6 5 1997666 Skyler Messinger Sr INF 67 65 12 48 23 \n", + "11 27 2485662 Jack O'Dowd So INF 21 7 2 5 3 \n", + "0 7 2309992 Douglas Hodo So OF 69 69 13 64 22 \n", + "2 0 2309986 Trey Faltine So INF 69 69 10 51 13 \n", + "3 14 2309972 Murphy Stehly Sr INF 68 68 15 68 20 \n", + "7 8 2471765 Dylan Campbell So INF 65 47 10 47 13 \n", + "5 19 2471769 Mitchell Daly So INF 67 59 4 44 11 \n", + "8 44 1872493 Austin Todd Sr OF 51 49 6 45 15 \n", + "13 6 2661687 Gavin Kash Fr INF 16 4 0 3 1 \n", + "12 10 2480203 Kimble Schuessler So C 17 4 0 5 1 \n", + "9 30 2120673 Eric Kennedy Jr OF 45 42 6 31 6 \n", + "10 28 2661707 Ace Whitehead Fr P 25 1 1 3 0 \n", + "14 29 2310015 Cam Constantine So OF 10 1 0 3 0 \n", + "15 15 2309996 Peyton Powell So C 6 1 0 1 0 \n", + "\n", + " ... OPS ISO HR/PA K/PA BB/PA K/BB BABIP wOBA wRAA \\\n", + "4 ... 1.660 0.642 0.147 0.250 0.206 1.214 0.462 0.676 21.452 \n", + "1 ... 1.220 0.314 0.033 0.098 0.098 1.000 0.444 0.525 9.840 \n", + "6 ... 1.197 0.209 0.036 0.073 0.073 1.000 0.488 0.532 9.265 \n", + "11 ... 1.171 0.000 0.000 0.000 0.143 0.000 0.600 0.519 1.086 \n", + "0 ... 0.934 0.187 0.028 0.222 0.083 2.667 0.426 0.425 4.263 \n", + "2 ... 0.904 0.294 0.048 0.435 0.145 3.000 0.455 0.397 1.899 \n", + "3 ... 0.895 0.250 0.054 0.081 0.054 1.500 0.276 0.400 2.493 \n", + "7 ... 0.828 0.127 0.017 0.136 0.203 0.667 0.316 0.404 2.229 \n", + "5 ... 0.800 0.205 0.034 0.172 0.121 1.429 0.257 0.356 -0.651 \n", + "8 ... 0.719 0.067 0.000 0.043 0.000 0.000 0.341 0.326 -1.967 \n", + "13 ... 0.666 0.000 0.000 0.000 0.000 0.000 0.333 0.317 -0.153 \n", + "12 ... 0.533 0.000 0.000 0.167 0.167 1.000 0.250 0.289 -0.478 \n", + "9 ... 0.450 0.000 0.000 0.205 0.103 2.000 0.250 0.227 -5.574 \n", + "10 ... 0.250 0.000 0.000 0.500 0.250 2.000 0.000 0.196 -0.698 \n", + "14 ... 0.200 0.000 0.000 0.200 0.000 0.000 0.000 0.161 -1.052 \n", + "15 ... 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 -0.375 \n", + "\n", + " wRC \n", + "4 32.128 \n", + "1 19.417 \n", + "6 17.900 \n", + "11 2.185 \n", + "0 15.567 \n", + "2 11.633 \n", + "3 14.111 \n", + "7 11.492 \n", + "5 8.455 \n", + "8 5.412 \n", + "13 0.318 \n", + "12 0.464 \n", + "9 0.549 \n", + "10 -0.070 \n", + "14 -0.267 \n", + "15 -0.218 \n", + "\n", + "[16 rows x 43 columns]" + ] + }, + "execution_count": 30, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ncaa_team_stats('Texas', 2022, 'batting', split='vs_LH').sort_values('OPS', ascending=False)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
RABH2B3BTBHRRBIBBHBP...OPSISOHR/PAK/PABB/PAK/BBBABIPwOBAwRAAwRC
0164217602611563...1.1100.2140.0190.1130.1131.0000.4320.5017.24714.720
16328001426105...0.9170.1880.0420.1460.2080.7000.2610.4504.28711.055
2123916512611072...1.1880.2570.0210.0830.1460.5710.4410.5408.30515.073
343181090455...0.7290.0320.0000.1710.1221.4000.3330.3911.4117.192
41238160019112101...1.0400.0790.0200.0800.2000.4000.4550.4996.74413.794
58341121150833...0.8560.1170.0000.2440.0733.3330.4400.4072.0217.802
69371240191832...0.9190.1900.0240.2380.0713.3330.4230.4262.8138.735
7133510111921373...0.9690.2570.0430.1280.1490.8570.2760.4373.62910.256
8113814501901060...0.9440.1320.0000.1560.1331.1670.4380.4423.68410.029
913851060161...0.4250.0260.0000.3780.1332.8330.2380.238-4.8561.489
10433930120491...0.8060.0910.0000.1630.2090.7780.3460.4102.2408.303
11134418202621241...1.0600.1820.0410.2240.0822.7500.5160.4855.97112.880
1232963090332...0.6240.1030.0000.1430.0861.6670.2400.309-1.4653.470
1303150050030...0.3960.0000.0000.1760.0882.0000.2000.210-4.5540.240
1432640040271...0.5070.0000.0000.2650.2061.2860.2350.300-1.7083.086
1553063090540...0.5940.1000.0000.1760.1181.5000.2500.294-1.8982.896
16153414602621462...1.2770.3530.0470.0930.1400.6670.4140.5568.08014.143
17143114113251470...1.5850.5800.1320.0790.1840.4290.3910.65410.60515.963
1810581900221955...0.8050.0510.0150.3090.0744.2000.5000.3982.78312.371
1953250081541...0.5200.0940.0270.1620.1081.5000.1600.263-3.1322.085
20533920141554...0.8530.1510.0240.1430.1191.2000.3080.4172.4618.383
21435810121334...0.7000.1140.0240.2620.0713.6670.3040.348-0.2345.688
2243272090372...0.6620.0620.0000.3100.1671.8570.3680.347-0.2735.649
2312661070000...0.4910.0380.0000.1850.0000.0000.2860.224-3.2650.542
2402650050020...0.4420.0000.0000.1430.0712.0000.2270.226-3.3340.614
2523260060251...0.5040.0000.0000.2370.1321.8000.2610.276-2.7572.601
264331131160400...0.8090.1520.0000.2060.0000.0000.4230.3590.1584.952
2742320051490...0.5500.1300.0300.1820.2730.6670.0620.305-1.5043.149
2823351091220...0.4730.1210.0290.2290.0574.0000.1670.220-4.3630.572
2902932050051...0.4290.0690.0000.1430.1431.0000.1250.240-3.7121.223
3023472090220...0.5150.0590.0000.2780.0565.0000.2920.249-3.5161.560
3103250170001...0.4010.0630.0000.2120.0000.0000.2000.189-5.065-0.412
325331010110430...0.6750.0300.0000.2370.0793.0000.4000.322-1.1314.227
33123411702421282...1.1730.3820.0440.1330.1780.7500.3460.5116.57212.917
346351030161641...0.8470.1710.0240.2200.0982.2500.3600.3800.9926.773
356401120161640...0.7410.1250.0230.2950.0913.2500.3850.349-0.2055.999
36238620111251...0.5780.1310.0220.1560.1111.4000.1670.272-3.4332.912
3702920020011...0.1980.0000.0000.2580.0328.0000.0950.113-6.950-2.579
3832731040231...0.3670.0370.0000.1250.0941.3330.1250.201-4.554-0.042
39534940161541...0.8300.2060.0260.2310.1032.2500.3330.3851.1256.624
40032640100021...0.5690.1240.0000.3140.0575.5000.2860.274-2.6052.330
41533721110560...0.6660.1210.0000.2310.1541.5000.2920.329-0.9074.592
42431820131420...0.7220.1610.0300.3030.0615.0000.3500.331-0.7063.947
43331610101330...0.5800.1290.0290.2860.0863.3330.2380.270-2.7352.200
44434800173440...0.8160.2650.0790.4210.1054.0000.3330.3610.2475.605
457326001223150...0.8220.1870.0430.2770.3190.8670.2350.4172.7549.381
46124416102321156...1.0700.1590.0380.1890.0942.0000.4380.4987.10014.573
47433700101471...0.6930.0910.0240.2200.1711.2860.2610.342-0.4585.323
484361040140452...0.7840.1110.0000.1160.1161.0000.3230.3861.2807.343
49931830141862...0.8520.1940.0250.2000.1501.3330.3040.4031.8237.463
50533920110553...0.7380.0600.0000.2380.1192.0000.3910.3740.7816.703
516349101316102...0.8200.1170.0210.2290.2081.1000.3480.4062.3229.090
52335721141321...0.6560.2000.0260.0770.0511.5000.1940.294-2.1773.322
5323120051251...0.3770.0960.0270.2970.1352.2000.0530.208-5.0250.192
5432971080240...0.6000.0350.0000.2650.1182.2500.3330.300-1.7083.086
558401440211821...0.9110.1750.0230.2050.0454.5000.4190.4132.4158.619
\n", + "

56 rows × 48 columns

\n", + "
" + ], + "text/plain": [ + " R AB H 2B 3B TB HR RBI BB HBP ... OPS ISO HR/PA K/PA \\\n", + "0 16 42 17 6 0 26 1 15 6 3 ... 1.110 0.214 0.019 0.113 \n", + "1 6 32 8 0 0 14 2 6 10 5 ... 0.917 0.188 0.042 0.146 \n", + "2 12 39 16 5 1 26 1 10 7 2 ... 1.188 0.257 0.021 0.083 \n", + "3 4 31 8 1 0 9 0 4 5 5 ... 0.729 0.032 0.000 0.171 \n", + "4 12 38 16 0 0 19 1 12 10 1 ... 1.040 0.079 0.020 0.080 \n", + "5 8 34 11 2 1 15 0 8 3 3 ... 0.856 0.117 0.000 0.244 \n", + "6 9 37 12 4 0 19 1 8 3 2 ... 0.919 0.190 0.024 0.238 \n", + "7 13 35 10 1 1 19 2 13 7 3 ... 0.969 0.257 0.043 0.128 \n", + "8 11 38 14 5 0 19 0 10 6 0 ... 0.944 0.132 0.000 0.156 \n", + "9 1 38 5 1 0 6 0 1 6 1 ... 0.425 0.026 0.000 0.378 \n", + "10 4 33 9 3 0 12 0 4 9 1 ... 0.806 0.091 0.000 0.163 \n", + "11 13 44 18 2 0 26 2 12 4 1 ... 1.060 0.182 0.041 0.224 \n", + "12 3 29 6 3 0 9 0 3 3 2 ... 0.624 0.103 0.000 0.143 \n", + "13 0 31 5 0 0 5 0 0 3 0 ... 0.396 0.000 0.000 0.176 \n", + "14 3 26 4 0 0 4 0 2 7 1 ... 0.507 0.000 0.000 0.265 \n", + "15 5 30 6 3 0 9 0 5 4 0 ... 0.594 0.100 0.000 0.176 \n", + "16 15 34 14 6 0 26 2 14 6 2 ... 1.277 0.353 0.047 0.093 \n", + "17 14 31 14 1 1 32 5 14 7 0 ... 1.585 0.580 0.132 0.079 \n", + "18 10 58 19 0 0 22 1 9 5 5 ... 0.805 0.051 0.015 0.309 \n", + "19 5 32 5 0 0 8 1 5 4 1 ... 0.520 0.094 0.027 0.162 \n", + "20 5 33 9 2 0 14 1 5 5 4 ... 0.853 0.151 0.024 0.143 \n", + "21 4 35 8 1 0 12 1 3 3 4 ... 0.700 0.114 0.024 0.262 \n", + "22 4 32 7 2 0 9 0 3 7 2 ... 0.662 0.062 0.000 0.310 \n", + "23 1 26 6 1 0 7 0 0 0 0 ... 0.491 0.038 0.000 0.185 \n", + "24 0 26 5 0 0 5 0 0 2 0 ... 0.442 0.000 0.000 0.143 \n", + "25 2 32 6 0 0 6 0 2 5 1 ... 0.504 0.000 0.000 0.237 \n", + "26 4 33 11 3 1 16 0 4 0 0 ... 0.809 0.152 0.000 0.206 \n", + "27 4 23 2 0 0 5 1 4 9 0 ... 0.550 0.130 0.030 0.182 \n", + "28 2 33 5 1 0 9 1 2 2 0 ... 0.473 0.121 0.029 0.229 \n", + "29 0 29 3 2 0 5 0 0 5 1 ... 0.429 0.069 0.000 0.143 \n", + "30 2 34 7 2 0 9 0 2 2 0 ... 0.515 0.059 0.000 0.278 \n", + "31 0 32 5 0 1 7 0 0 0 1 ... 0.401 0.063 0.000 0.212 \n", + "32 5 33 10 1 0 11 0 4 3 0 ... 0.675 0.030 0.000 0.237 \n", + "33 12 34 11 7 0 24 2 12 8 2 ... 1.173 0.382 0.044 0.133 \n", + "34 6 35 10 3 0 16 1 6 4 1 ... 0.847 0.171 0.024 0.220 \n", + "35 6 40 11 2 0 16 1 6 4 0 ... 0.741 0.125 0.023 0.295 \n", + "36 2 38 6 2 0 11 1 2 5 1 ... 0.578 0.131 0.022 0.156 \n", + "37 0 29 2 0 0 2 0 0 1 1 ... 0.198 0.000 0.000 0.258 \n", + "38 3 27 3 1 0 4 0 2 3 1 ... 0.367 0.037 0.000 0.125 \n", + "39 5 34 9 4 0 16 1 5 4 1 ... 0.830 0.206 0.026 0.231 \n", + "40 0 32 6 4 0 10 0 0 2 1 ... 0.569 0.124 0.000 0.314 \n", + "41 5 33 7 2 1 11 0 5 6 0 ... 0.666 0.121 0.000 0.231 \n", + "42 4 31 8 2 0 13 1 4 2 0 ... 0.722 0.161 0.030 0.303 \n", + "43 3 31 6 1 0 10 1 3 3 0 ... 0.580 0.129 0.029 0.286 \n", + "44 4 34 8 0 0 17 3 4 4 0 ... 0.816 0.265 0.079 0.421 \n", + "45 7 32 6 0 0 12 2 3 15 0 ... 0.822 0.187 0.043 0.277 \n", + "46 12 44 16 1 0 23 2 11 5 6 ... 1.070 0.159 0.038 0.189 \n", + "47 4 33 7 0 0 10 1 4 7 1 ... 0.693 0.091 0.024 0.220 \n", + "48 4 36 10 4 0 14 0 4 5 2 ... 0.784 0.111 0.000 0.116 \n", + "49 9 31 8 3 0 14 1 8 6 2 ... 0.852 0.194 0.025 0.200 \n", + "50 5 33 9 2 0 11 0 5 5 3 ... 0.738 0.060 0.000 0.238 \n", + "51 6 34 9 1 0 13 1 6 10 2 ... 0.820 0.117 0.021 0.229 \n", + "52 3 35 7 2 1 14 1 3 2 1 ... 0.656 0.200 0.026 0.077 \n", + "53 2 31 2 0 0 5 1 2 5 1 ... 0.377 0.096 0.027 0.297 \n", + "54 3 29 7 1 0 8 0 2 4 0 ... 0.600 0.035 0.000 0.265 \n", + "55 8 40 14 4 0 21 1 8 2 1 ... 0.911 0.175 0.023 0.205 \n", + "\n", + " BB/PA K/BB BABIP wOBA wRAA wRC \n", + "0 0.113 1.000 0.432 0.501 7.247 14.720 \n", + "1 0.208 0.700 0.261 0.450 4.287 11.055 \n", + "2 0.146 0.571 0.441 0.540 8.305 15.073 \n", + "3 0.122 1.400 0.333 0.391 1.411 7.192 \n", + "4 0.200 0.400 0.455 0.499 6.744 13.794 \n", + "5 0.073 3.333 0.440 0.407 2.021 7.802 \n", + "6 0.071 3.333 0.423 0.426 2.813 8.735 \n", + "7 0.149 0.857 0.276 0.437 3.629 10.256 \n", + "8 0.133 1.167 0.438 0.442 3.684 10.029 \n", + "9 0.133 2.833 0.238 0.238 -4.856 1.489 \n", + "10 0.209 0.778 0.346 0.410 2.240 8.303 \n", + "11 0.082 2.750 0.516 0.485 5.971 12.880 \n", + "12 0.086 1.667 0.240 0.309 -1.465 3.470 \n", + "13 0.088 2.000 0.200 0.210 -4.554 0.240 \n", + "14 0.206 1.286 0.235 0.300 -1.708 3.086 \n", + "15 0.118 1.500 0.250 0.294 -1.898 2.896 \n", + "16 0.140 0.667 0.414 0.556 8.080 14.143 \n", + "17 0.184 0.429 0.391 0.654 10.605 15.963 \n", + "18 0.074 4.200 0.500 0.398 2.783 12.371 \n", + "19 0.108 1.500 0.160 0.263 -3.132 2.085 \n", + "20 0.119 1.200 0.308 0.417 2.461 8.383 \n", + "21 0.071 3.667 0.304 0.348 -0.234 5.688 \n", + "22 0.167 1.857 0.368 0.347 -0.273 5.649 \n", + "23 0.000 0.000 0.286 0.224 -3.265 0.542 \n", + "24 0.071 2.000 0.227 0.226 -3.334 0.614 \n", + "25 0.132 1.800 0.261 0.276 -2.757 2.601 \n", + "26 0.000 0.000 0.423 0.359 0.158 4.952 \n", + "27 0.273 0.667 0.062 0.305 -1.504 3.149 \n", + "28 0.057 4.000 0.167 0.220 -4.363 0.572 \n", + "29 0.143 1.000 0.125 0.240 -3.712 1.223 \n", + "30 0.056 5.000 0.292 0.249 -3.516 1.560 \n", + "31 0.000 0.000 0.200 0.189 -5.065 -0.412 \n", + "32 0.079 3.000 0.400 0.322 -1.131 4.227 \n", + "33 0.178 0.750 0.346 0.511 6.572 12.917 \n", + "34 0.098 2.250 0.360 0.380 0.992 6.773 \n", + "35 0.091 3.250 0.385 0.349 -0.205 5.999 \n", + "36 0.111 1.400 0.167 0.272 -3.433 2.912 \n", + "37 0.032 8.000 0.095 0.113 -6.950 -2.579 \n", + "38 0.094 1.333 0.125 0.201 -4.554 -0.042 \n", + "39 0.103 2.250 0.333 0.385 1.125 6.624 \n", + "40 0.057 5.500 0.286 0.274 -2.605 2.330 \n", + "41 0.154 1.500 0.292 0.329 -0.907 4.592 \n", + "42 0.061 5.000 0.350 0.331 -0.706 3.947 \n", + "43 0.086 3.333 0.238 0.270 -2.735 2.200 \n", + "44 0.105 4.000 0.333 0.361 0.247 5.605 \n", + "45 0.319 0.867 0.235 0.417 2.754 9.381 \n", + "46 0.094 2.000 0.438 0.498 7.100 14.573 \n", + "47 0.171 1.286 0.261 0.342 -0.458 5.323 \n", + "48 0.116 1.000 0.323 0.386 1.280 7.343 \n", + "49 0.150 1.333 0.304 0.403 1.823 7.463 \n", + "50 0.119 2.000 0.391 0.374 0.781 6.703 \n", + "51 0.208 1.100 0.348 0.406 2.322 9.090 \n", + "52 0.051 1.500 0.194 0.294 -2.177 3.322 \n", + "53 0.135 2.200 0.053 0.208 -5.025 0.192 \n", + "54 0.118 2.250 0.333 0.300 -1.708 3.086 \n", + "55 0.045 4.500 0.419 0.413 2.415 8.619 \n", + "\n", + "[56 rows x 48 columns]" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ncaa_team_game_logs('Alabama', 2018, 'batting')" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
RABH2B3BTBHRRBIBBHBP...innings_playedextrasruns_scoredruns_allowedrun_differenceresultgame_idschool_idseasondivision
0164217602611563...9True16214win85311820181
16328001426105...9True651win85517820181
2123916512611072...9True1266win85853820181
343181090455...9True404win86135820181
41238160019112101...9True1248win86391820181
58341121150833...9True826win86406820181
69371240191832...9True936win86589820181
7133510111921373...9True13310win87332820181
8113814501901060...9True11110win87457820181
913851060161...11True12-1loss87561820181
10433930120491...9True416-12loss87797820181
11134418202621241...9True13112win88301820181
1232963090332...9True303win89129820181
1303150050030...9True03-3loss89512820181
1432640040271...9True312win89528820181
1553063090540...9True523win89821820181
16153414602621462...9True15015win90761820181
17143114113251470...9True14014win90938820181
1810581900221955...13True1091win91314820181
1953250081541...9True56-1loss91631820181
20533920141554...9True56-1loss92185820181
21435810121334...9True46-2loss92523820181
2243272090372...9True45-1loss92919820181
2312661070000...9True12-1loss93853820181
2402650050020...9True03-3loss93794820181
2523260060251...9True25-3loss94196820181
264331131160400...9True422win94732820181
2742320051490...9True422win95196820181
2823351091220...9True25-3loss95688820181
2902932050051...9True04-4loss95876820181
3023472090220...9True211win96275820181
3103250170001...9True01-1loss96854820181
325331010110430...9True514win96897820181
33123411702421282...9True1239win97631820181
346351030161641...9True612-6loss98067820181
356401120161640...9True69-3loss98278820181
36238620111251...11True23-1loss98627820181
3702920020011...9True06-6loss99518820181
3832731040231...9True303win99745820181
39534940161541...9True519-14loss100094820181
40032640100021...9True05-5loss100889820181
41533721110560...9True520-15loss100943820181
42431820131420...9True431win101594820181
43331610101330...9True37-4loss102125820181
44434800173440...9True47-3loss102388820181
457326001223150...9True79-2loss103095820181
46124416102321156...10True1214-2loss103922820181
47433700101471...10True431win104227820181
484361040140452...9True46-2loss104724820181
49931830141862...9True981win104993820181
50533920110553...9True57-2loss105225820181
516349101316102...9True615win105476820181
52335721141321...9True37-4loss105704820181
5323120051251...9True23-1loss106008820181
5432971080240...9True303win106187820181
558401440211821...9True810-2loss106370820181
\n", + "

56 rows × 33 columns

\n", + "
" + ], + "text/plain": [ + " R AB H 2B 3B TB HR RBI BB HBP ... innings_played extras \\\n", + "0 16 42 17 6 0 26 1 15 6 3 ... 9 True \n", + "1 6 32 8 0 0 14 2 6 10 5 ... 9 True \n", + "2 12 39 16 5 1 26 1 10 7 2 ... 9 True \n", + "3 4 31 8 1 0 9 0 4 5 5 ... 9 True \n", + "4 12 38 16 0 0 19 1 12 10 1 ... 9 True \n", + "5 8 34 11 2 1 15 0 8 3 3 ... 9 True \n", + "6 9 37 12 4 0 19 1 8 3 2 ... 9 True \n", + "7 13 35 10 1 1 19 2 13 7 3 ... 9 True \n", + "8 11 38 14 5 0 19 0 10 6 0 ... 9 True \n", + "9 1 38 5 1 0 6 0 1 6 1 ... 11 True \n", + "10 4 33 9 3 0 12 0 4 9 1 ... 9 True \n", + "11 13 44 18 2 0 26 2 12 4 1 ... 9 True \n", + "12 3 29 6 3 0 9 0 3 3 2 ... 9 True \n", + "13 0 31 5 0 0 5 0 0 3 0 ... 9 True \n", + "14 3 26 4 0 0 4 0 2 7 1 ... 9 True \n", + "15 5 30 6 3 0 9 0 5 4 0 ... 9 True \n", + "16 15 34 14 6 0 26 2 14 6 2 ... 9 True \n", + "17 14 31 14 1 1 32 5 14 7 0 ... 9 True \n", + "18 10 58 19 0 0 22 1 9 5 5 ... 13 True \n", + "19 5 32 5 0 0 8 1 5 4 1 ... 9 True \n", + "20 5 33 9 2 0 14 1 5 5 4 ... 9 True \n", + "21 4 35 8 1 0 12 1 3 3 4 ... 9 True \n", + "22 4 32 7 2 0 9 0 3 7 2 ... 9 True \n", + "23 1 26 6 1 0 7 0 0 0 0 ... 9 True \n", + "24 0 26 5 0 0 5 0 0 2 0 ... 9 True \n", + "25 2 32 6 0 0 6 0 2 5 1 ... 9 True \n", + "26 4 33 11 3 1 16 0 4 0 0 ... 9 True \n", + "27 4 23 2 0 0 5 1 4 9 0 ... 9 True \n", + "28 2 33 5 1 0 9 1 2 2 0 ... 9 True \n", + "29 0 29 3 2 0 5 0 0 5 1 ... 9 True \n", + "30 2 34 7 2 0 9 0 2 2 0 ... 9 True \n", + "31 0 32 5 0 1 7 0 0 0 1 ... 9 True \n", + "32 5 33 10 1 0 11 0 4 3 0 ... 9 True \n", + "33 12 34 11 7 0 24 2 12 8 2 ... 9 True \n", + "34 6 35 10 3 0 16 1 6 4 1 ... 9 True \n", + "35 6 40 11 2 0 16 1 6 4 0 ... 9 True \n", + "36 2 38 6 2 0 11 1 2 5 1 ... 11 True \n", + "37 0 29 2 0 0 2 0 0 1 1 ... 9 True \n", + "38 3 27 3 1 0 4 0 2 3 1 ... 9 True \n", + "39 5 34 9 4 0 16 1 5 4 1 ... 9 True \n", + "40 0 32 6 4 0 10 0 0 2 1 ... 9 True \n", + "41 5 33 7 2 1 11 0 5 6 0 ... 9 True \n", + "42 4 31 8 2 0 13 1 4 2 0 ... 9 True \n", + "43 3 31 6 1 0 10 1 3 3 0 ... 9 True \n", + "44 4 34 8 0 0 17 3 4 4 0 ... 9 True \n", + "45 7 32 6 0 0 12 2 3 15 0 ... 9 True \n", + "46 12 44 16 1 0 23 2 11 5 6 ... 10 True \n", + "47 4 33 7 0 0 10 1 4 7 1 ... 10 True \n", + "48 4 36 10 4 0 14 0 4 5 2 ... 9 True \n", + "49 9 31 8 3 0 14 1 8 6 2 ... 9 True \n", + "50 5 33 9 2 0 11 0 5 5 3 ... 9 True \n", + "51 6 34 9 1 0 13 1 6 10 2 ... 9 True \n", + "52 3 35 7 2 1 14 1 3 2 1 ... 9 True \n", + "53 2 31 2 0 0 5 1 2 5 1 ... 9 True \n", + "54 3 29 7 1 0 8 0 2 4 0 ... 9 True \n", + "55 8 40 14 4 0 21 1 8 2 1 ... 9 True \n", + "\n", + " runs_scored runs_allowed run_difference result game_id school_id \\\n", + "0 16 2 14 win 85311 8 \n", + "1 6 5 1 win 85517 8 \n", + "2 12 6 6 win 85853 8 \n", + "3 4 0 4 win 86135 8 \n", + "4 12 4 8 win 86391 8 \n", + "5 8 2 6 win 86406 8 \n", + "6 9 3 6 win 86589 8 \n", + "7 13 3 10 win 87332 8 \n", + "8 11 1 10 win 87457 8 \n", + "9 1 2 -1 loss 87561 8 \n", + "10 4 16 -12 loss 87797 8 \n", + "11 13 1 12 win 88301 8 \n", + "12 3 0 3 win 89129 8 \n", + "13 0 3 -3 loss 89512 8 \n", + "14 3 1 2 win 89528 8 \n", + "15 5 2 3 win 89821 8 \n", + "16 15 0 15 win 90761 8 \n", + "17 14 0 14 win 90938 8 \n", + "18 10 9 1 win 91314 8 \n", + "19 5 6 -1 loss 91631 8 \n", + "20 5 6 -1 loss 92185 8 \n", + "21 4 6 -2 loss 92523 8 \n", + "22 4 5 -1 loss 92919 8 \n", + "23 1 2 -1 loss 93853 8 \n", + "24 0 3 -3 loss 93794 8 \n", + "25 2 5 -3 loss 94196 8 \n", + "26 4 2 2 win 94732 8 \n", + "27 4 2 2 win 95196 8 \n", + "28 2 5 -3 loss 95688 8 \n", + "29 0 4 -4 loss 95876 8 \n", + "30 2 1 1 win 96275 8 \n", + "31 0 1 -1 loss 96854 8 \n", + "32 5 1 4 win 96897 8 \n", + "33 12 3 9 win 97631 8 \n", + "34 6 12 -6 loss 98067 8 \n", + "35 6 9 -3 loss 98278 8 \n", + "36 2 3 -1 loss 98627 8 \n", + "37 0 6 -6 loss 99518 8 \n", + "38 3 0 3 win 99745 8 \n", + "39 5 19 -14 loss 100094 8 \n", + "40 0 5 -5 loss 100889 8 \n", + "41 5 20 -15 loss 100943 8 \n", + "42 4 3 1 win 101594 8 \n", + "43 3 7 -4 loss 102125 8 \n", + "44 4 7 -3 loss 102388 8 \n", + "45 7 9 -2 loss 103095 8 \n", + "46 12 14 -2 loss 103922 8 \n", + "47 4 3 1 win 104227 8 \n", + "48 4 6 -2 loss 104724 8 \n", + "49 9 8 1 win 104993 8 \n", + "50 5 7 -2 loss 105225 8 \n", + "51 6 1 5 win 105476 8 \n", + "52 3 7 -4 loss 105704 8 \n", + "53 2 3 -1 loss 106008 8 \n", + "54 3 0 3 win 106187 8 \n", + "55 8 10 -2 loss 106370 8 \n", + "\n", + " season division \n", + "0 2018 1 \n", + "1 2018 1 \n", + "2 2018 1 \n", + "3 2018 1 \n", + "4 2018 1 \n", + "5 2018 1 \n", + "6 2018 1 \n", + "7 2018 1 \n", + "8 2018 1 \n", + "9 2018 1 \n", + "10 2018 1 \n", + "11 2018 1 \n", + "12 2018 1 \n", + "13 2018 1 \n", + "14 2018 1 \n", + "15 2018 1 \n", + "16 2018 1 \n", + "17 2018 1 \n", + "18 2018 1 \n", + "19 2018 1 \n", + "20 2018 1 \n", + "21 2018 1 \n", + "22 2018 1 \n", + "23 2018 1 \n", + "24 2018 1 \n", + "25 2018 1 \n", + "26 2018 1 \n", + "27 2018 1 \n", + "28 2018 1 \n", + "29 2018 1 \n", + "30 2018 1 \n", + "31 2018 1 \n", + "32 2018 1 \n", + "33 2018 1 \n", + "34 2018 1 \n", + "35 2018 1 \n", + "36 2018 1 \n", + "37 2018 1 \n", + "38 2018 1 \n", + "39 2018 1 \n", + "40 2018 1 \n", + "41 2018 1 \n", + "42 2018 1 \n", + "43 2018 1 \n", + "44 2018 1 \n", + "45 2018 1 \n", + "46 2018 1 \n", + "47 2018 1 \n", + "48 2018 1 \n", + "49 2018 1 \n", + "50 2018 1 \n", + "51 2018 1 \n", + "52 2018 1 \n", + "53 2018 1 \n", + "54 2018 1 \n", + "55 2018 1 \n", + "\n", + "[56 rows x 33 columns]" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ncaa_team_game_logs('Alabama', 2018, 'batting', include_advanced=False)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 45, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
jerseystats_player_seqnamepositionclass_yeargames_playedgames_startedseasonseason_idschoolschool_iddivision
041428376Nate AdamsINFSr3635201612360Yale8131
1301762703Sam BoiesPFr160201612360Yale8131
261640575Alex BoosCSo1612201612360Yale8131
3181640576Eric BrodkowitzPSo21201612360Yale8131
4201549567Derek BrownINFJr125201612360Yale8131
521762704Tim DegrawOFFr4846201612360Yale8131
6221762705Griffin Dey1BFr2914201612360Yale8131
7291640577Tyler DuncanPSo180201612360Yale8131
8151549568Chasen FordPJr1510201612360Yale8131
931762706Tom FullerCFr82201612360Yale8131
1071549575Andrew HerreraCJr3834201612360Yale8131
11171549577Alec HoeschelINFJr2716201612360Yale8131
12331640578Mason KukowskiPSo207201612360Yale8131
13261428377Chris LanhamPSr114201612360Yale8131
14111428378Brent LawsonCSr4336201612360Yale8131
15211549579Jackson McclainPJr00201612360Yale8131
16321428379Chris MoatesPSr2210201612360Yale8131
17141762707Kumar NambiarPFr154201612360Yale8131
18241428380Tom O'NeillINFSr4745201612360Yale8131
19341762708Scott PolitzPFr1311201612360Yale8131
20251640579Tom RuddyOFSo2512201612360Yale8131
21351640580Drew ScottPSo162201612360Yale8131
2291549602Richard SlenkerINFJr4747201612360Yale8131
2381640581Mikey SliepkaINFSo120201612360Yale8131
24271762709Ben WangerPFr4440201612360Yale8131
2551549586Harrison WhiteINFJr4538201612360Yale8131
2611762710Simon WhitemanINFFr4847201612360Yale8131
\n", + "
" + ], + "text/plain": [ + " jersey stats_player_seq name position class_year games_played \\\n", + "0 4 1428376 Nate Adams INF Sr 36 \n", + "1 30 1762703 Sam Boies P Fr 16 \n", + "2 6 1640575 Alex Boos C So 16 \n", + "3 18 1640576 Eric Brodkowitz P So 2 \n", + "4 20 1549567 Derek Brown INF Jr 12 \n", + "5 2 1762704 Tim Degraw OF Fr 48 \n", + "6 22 1762705 Griffin Dey 1B Fr 29 \n", + "7 29 1640577 Tyler Duncan P So 18 \n", + "8 15 1549568 Chasen Ford P Jr 15 \n", + "9 3 1762706 Tom Fuller C Fr 8 \n", + "10 7 1549575 Andrew Herrera C Jr 38 \n", + "11 17 1549577 Alec Hoeschel INF Jr 27 \n", + "12 33 1640578 Mason Kukowski P So 20 \n", + "13 26 1428377 Chris Lanham P Sr 11 \n", + "14 11 1428378 Brent Lawson C Sr 43 \n", + "15 21 1549579 Jackson Mcclain P Jr 0 \n", + "16 32 1428379 Chris Moates P Sr 22 \n", + "17 14 1762707 Kumar Nambiar P Fr 15 \n", + "18 24 1428380 Tom O'Neill INF Sr 47 \n", + "19 34 1762708 Scott Politz P Fr 13 \n", + "20 25 1640579 Tom Ruddy OF So 25 \n", + "21 35 1640580 Drew Scott P So 16 \n", + "22 9 1549602 Richard Slenker INF Jr 47 \n", + "23 8 1640581 Mikey Sliepka INF So 12 \n", + "24 27 1762709 Ben Wanger P Fr 44 \n", + "25 5 1549586 Harrison White INF Jr 45 \n", + "26 1 1762710 Simon Whiteman INF Fr 48 \n", + "\n", + " games_started season season_id school school_id division \n", + "0 35 2016 12360 Yale 813 1 \n", + "1 0 2016 12360 Yale 813 1 \n", + "2 12 2016 12360 Yale 813 1 \n", + "3 1 2016 12360 Yale 813 1 \n", + "4 5 2016 12360 Yale 813 1 \n", + "5 46 2016 12360 Yale 813 1 \n", + "6 14 2016 12360 Yale 813 1 \n", + "7 0 2016 12360 Yale 813 1 \n", + "8 10 2016 12360 Yale 813 1 \n", + "9 2 2016 12360 Yale 813 1 \n", + "10 34 2016 12360 Yale 813 1 \n", + "11 16 2016 12360 Yale 813 1 \n", + "12 7 2016 12360 Yale 813 1 \n", + "13 4 2016 12360 Yale 813 1 \n", + "14 36 2016 12360 Yale 813 1 \n", + "15 0 2016 12360 Yale 813 1 \n", + "16 10 2016 12360 Yale 813 1 \n", + "17 4 2016 12360 Yale 813 1 \n", + "18 45 2016 12360 Yale 813 1 \n", + "19 11 2016 12360 Yale 813 1 \n", + "20 12 2016 12360 Yale 813 1 \n", + "21 2 2016 12360 Yale 813 1 \n", + "22 47 2016 12360 Yale 813 1 \n", + "23 0 2016 12360 Yale 813 1 \n", + "24 40 2016 12360 Yale 813 1 \n", + "25 38 2016 12360 Yale 813 1 \n", + "26 47 2016 12360 Yale 813 1 " + ] + }, + "execution_count": 45, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ncaa_team_season_roster('Yale', 2016)" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
game_iddatefieldopponent_nameopponent_idinnings_playedextrasruns_scoredruns_allowedrun_differenceresultschool_idseason_iddivision
0216797702/18/2022homeVMI7419True510-5loss193158601
1216832902/19/2022homeVMI7419True918win193158601
2216855702/20/2022homeVMI7419True871win193158601
3216870102/22/2022homeApp State279True853win193158601
4216907802/25/2022awayBaylor519True24-2loss193158601
5216944502/27/2022awayBaylor519True312-9loss193158601
6216970802/27/2022awayBaylor519True422win193158601
7216991503/01/2022homeEast Carolina1969True212-10loss193158601
8217029003/04/2022homeBucknell839True17116win193158601
9217074903/05/2022homeBucknell839True68-2loss193158601
10217103003/06/2022homeBucknell839True18117win193158601
11217132603/08/2022homeUMass Lowell3689True945win193158601
12217150403/09/2022homeUMass Lowell3689True541win193158601
13217181503/11/2022homeVirginia7469True05-5loss193158601
14217226103/13/2022homeVirginia7469True113-12loss193158601
15217253203/13/2022homeVirginia7469True761win193158601
16217280803/15/2022homeWest Virginia7689True211win193158601
17217328803/18/2022homeNorth Carolina4579True510-5loss193158601
18217377603/19/2022homeNorth Carolina4579True936win193158601
19217403203/20/2022homeNorth Carolina4579True14-3loss193158601
20217427003/22/2022homeWilliam & Mary7869True314-11loss193158601
21003/23/2022awayPresbyterian5263240False000cancelled193158601
22217481903/25/2022awayFlorida St.2349True04-4loss193158601
23217517503/26/2022awayFlorida St.2349True27-5loss193158601
24217545503/27/2022awayFlorida St.2349True1129win193158601
25217576303/29/2022homeLiberty3559True29-7loss193158601
26217626704/01/2022homeMiami (FL)4159True14-3loss193158601
27217674604/02/2022homeMiami (FL)4159True34-1loss193158601
28217698904/03/2022homeMiami (FL)4159True311-8loss193158601
29004/05/2022awayDavidson5263950False000cancelled193158601
30217747404/06/2022homeLongwood36313True651win193158601
31217777504/08/2022awayWake Forest7499True25-3loss193158601
32217826004/09/2022awayWake Forest7499True36-3loss193158601
33217851104/10/2022awayWake Forest7499True1116-5loss193158601
34217880804/12/2022homeCampbell1159True610-4loss193158601
35217908504/14/2022homeNotre Dame5139True15510win193158601
36217944704/15/2022homeNotre Dame51311True431win193158601
37217977304/16/2022homeNotre Dame5139True624win193158601
38218022904/19/2022awayLiberty3559True23-1loss193158601
39218072404/22/2022awayGeorgia Tech25510True1112-1loss193158601
40218118204/23/2022awayGeorgia Tech2559True844win193158601
41218144904/24/2022awayGeorgia Tech2559True15141win193158601
42218286705/01/2022homeHigh Point196519True14212win193158601
43218598805/01/2022homeHigh Point196519True011-11loss193158601
44218300205/03/2022awayCampbell1159True36-3loss193158601
45218358405/07/2022awayPittsburgh5459True414-10loss193158601
46218331405/08/2022awayPittsburgh5459True23-1loss193158601
47218372305/08/2022awayPittsburgh5459True15510win193158601
48218385205/10/2022awayEast Carolina1969True45-1loss193158601
49218399205/13/2022homeNC State4909True35-2loss193158601
50218414805/14/2022homeNC State4909True513-8loss193158601
51218427205/15/2022homeNC State4909True743win193158601
52218437505/17/2022homeDavidson1739True1129win193158601
53218440905/19/2022awayVirginia Tech7429True1115-4loss193158601
54218453305/20/2022awayVirginia Tech7429True16-5loss193158601
55218466905/21/2022awayVirginia Tech7429True27-5loss193158601
\n", + "
" + ], + "text/plain": [ + " game_id date field opponent_name opponent_id innings_played \\\n", + "0 2167977 02/18/2022 home VMI 741 9 \n", + "1 2168329 02/19/2022 home VMI 741 9 \n", + "2 2168557 02/20/2022 home VMI 741 9 \n", + "3 2168701 02/22/2022 home App State 27 9 \n", + "4 2169078 02/25/2022 away Baylor 51 9 \n", + "5 2169445 02/27/2022 away Baylor 51 9 \n", + "6 2169708 02/27/2022 away Baylor 51 9 \n", + "7 2169915 03/01/2022 home East Carolina 196 9 \n", + "8 2170290 03/04/2022 home Bucknell 83 9 \n", + "9 2170749 03/05/2022 home Bucknell 83 9 \n", + "10 2171030 03/06/2022 home Bucknell 83 9 \n", + "11 2171326 03/08/2022 home UMass Lowell 368 9 \n", + "12 2171504 03/09/2022 home UMass Lowell 368 9 \n", + "13 2171815 03/11/2022 home Virginia 746 9 \n", + "14 2172261 03/13/2022 home Virginia 746 9 \n", + "15 2172532 03/13/2022 home Virginia 746 9 \n", + "16 2172808 03/15/2022 home West Virginia 768 9 \n", + "17 2173288 03/18/2022 home North Carolina 457 9 \n", + "18 2173776 03/19/2022 home North Carolina 457 9 \n", + "19 2174032 03/20/2022 home North Carolina 457 9 \n", + "20 2174270 03/22/2022 home William & Mary 786 9 \n", + "21 0 03/23/2022 away Presbyterian 526324 0 \n", + "22 2174819 03/25/2022 away Florida St. 234 9 \n", + "23 2175175 03/26/2022 away Florida St. 234 9 \n", + "24 2175455 03/27/2022 away Florida St. 234 9 \n", + "25 2175763 03/29/2022 home Liberty 355 9 \n", + "26 2176267 04/01/2022 home Miami (FL) 415 9 \n", + "27 2176746 04/02/2022 home Miami (FL) 415 9 \n", + "28 2176989 04/03/2022 home Miami (FL) 415 9 \n", + "29 0 04/05/2022 away Davidson 526395 0 \n", + "30 2177474 04/06/2022 home Longwood 363 13 \n", + "31 2177775 04/08/2022 away Wake Forest 749 9 \n", + "32 2178260 04/09/2022 away Wake Forest 749 9 \n", + "33 2178511 04/10/2022 away Wake Forest 749 9 \n", + "34 2178808 04/12/2022 home Campbell 115 9 \n", + "35 2179085 04/14/2022 home Notre Dame 513 9 \n", + "36 2179447 04/15/2022 home Notre Dame 513 11 \n", + "37 2179773 04/16/2022 home Notre Dame 513 9 \n", + "38 2180229 04/19/2022 away Liberty 355 9 \n", + "39 2180724 04/22/2022 away Georgia Tech 255 10 \n", + "40 2181182 04/23/2022 away Georgia Tech 255 9 \n", + "41 2181449 04/24/2022 away Georgia Tech 255 9 \n", + "42 2182867 05/01/2022 home High Point 19651 9 \n", + "43 2185988 05/01/2022 home High Point 19651 9 \n", + "44 2183002 05/03/2022 away Campbell 115 9 \n", + "45 2183584 05/07/2022 away Pittsburgh 545 9 \n", + "46 2183314 05/08/2022 away Pittsburgh 545 9 \n", + "47 2183723 05/08/2022 away Pittsburgh 545 9 \n", + "48 2183852 05/10/2022 away East Carolina 196 9 \n", + "49 2183992 05/13/2022 home NC State 490 9 \n", + "50 2184148 05/14/2022 home NC State 490 9 \n", + "51 2184272 05/15/2022 home NC State 490 9 \n", + "52 2184375 05/17/2022 home Davidson 173 9 \n", + "53 2184409 05/19/2022 away Virginia Tech 742 9 \n", + "54 2184533 05/20/2022 away Virginia Tech 742 9 \n", + "55 2184669 05/21/2022 away Virginia Tech 742 9 \n", + "\n", + " extras runs_scored runs_allowed run_difference result school_id \\\n", + "0 True 5 10 -5 loss 193 \n", + "1 True 9 1 8 win 193 \n", + "2 True 8 7 1 win 193 \n", + "3 True 8 5 3 win 193 \n", + "4 True 2 4 -2 loss 193 \n", + "5 True 3 12 -9 loss 193 \n", + "6 True 4 2 2 win 193 \n", + "7 True 2 12 -10 loss 193 \n", + "8 True 17 1 16 win 193 \n", + "9 True 6 8 -2 loss 193 \n", + "10 True 18 1 17 win 193 \n", + "11 True 9 4 5 win 193 \n", + "12 True 5 4 1 win 193 \n", + "13 True 0 5 -5 loss 193 \n", + "14 True 1 13 -12 loss 193 \n", + "15 True 7 6 1 win 193 \n", + "16 True 2 1 1 win 193 \n", + "17 True 5 10 -5 loss 193 \n", + "18 True 9 3 6 win 193 \n", + "19 True 1 4 -3 loss 193 \n", + "20 True 3 14 -11 loss 193 \n", + "21 False 0 0 0 cancelled 193 \n", + "22 True 0 4 -4 loss 193 \n", + "23 True 2 7 -5 loss 193 \n", + "24 True 11 2 9 win 193 \n", + "25 True 2 9 -7 loss 193 \n", + "26 True 1 4 -3 loss 193 \n", + "27 True 3 4 -1 loss 193 \n", + "28 True 3 11 -8 loss 193 \n", + "29 False 0 0 0 cancelled 193 \n", + "30 True 6 5 1 win 193 \n", + "31 True 2 5 -3 loss 193 \n", + "32 True 3 6 -3 loss 193 \n", + "33 True 11 16 -5 loss 193 \n", + "34 True 6 10 -4 loss 193 \n", + "35 True 15 5 10 win 193 \n", + "36 True 4 3 1 win 193 \n", + "37 True 6 2 4 win 193 \n", + "38 True 2 3 -1 loss 193 \n", + "39 True 11 12 -1 loss 193 \n", + "40 True 8 4 4 win 193 \n", + "41 True 15 14 1 win 193 \n", + "42 True 14 2 12 win 193 \n", + "43 True 0 11 -11 loss 193 \n", + "44 True 3 6 -3 loss 193 \n", + "45 True 4 14 -10 loss 193 \n", + "46 True 2 3 -1 loss 193 \n", + "47 True 15 5 10 win 193 \n", + "48 True 4 5 -1 loss 193 \n", + "49 True 3 5 -2 loss 193 \n", + "50 True 5 13 -8 loss 193 \n", + "51 True 7 4 3 win 193 \n", + "52 True 11 2 9 win 193 \n", + "53 True 11 15 -4 loss 193 \n", + "54 True 1 6 -5 loss 193 \n", + "55 True 2 7 -5 loss 193 \n", + "\n", + " season_id division \n", + "0 15860 1 \n", + "1 15860 1 \n", + "2 15860 1 \n", + "3 15860 1 \n", + "4 15860 1 \n", + "5 15860 1 \n", + "6 15860 1 \n", + "7 15860 1 \n", + "8 15860 1 \n", + "9 15860 1 \n", + "10 15860 1 \n", + "11 15860 1 \n", + "12 15860 1 \n", + "13 15860 1 \n", + "14 15860 1 \n", + "15 15860 1 \n", + "16 15860 1 \n", + "17 15860 1 \n", + "18 15860 1 \n", + "19 15860 1 \n", + "20 15860 1 \n", + "21 15860 1 \n", + "22 15860 1 \n", + "23 15860 1 \n", + "24 15860 1 \n", + "25 15860 1 \n", + "26 15860 1 \n", + "27 15860 1 \n", + "28 15860 1 \n", + "29 15860 1 \n", + "30 15860 1 \n", + "31 15860 1 \n", + "32 15860 1 \n", + "33 15860 1 \n", + "34 15860 1 \n", + "35 15860 1 \n", + "36 15860 1 \n", + "37 15860 1 \n", + "38 15860 1 \n", + "39 15860 1 \n", + "40 15860 1 \n", + "41 15860 1 \n", + "42 15860 1 \n", + "43 15860 1 \n", + "44 15860 1 \n", + "45 15860 1 \n", + "46 15860 1 \n", + "47 15860 1 \n", + "48 15860 1 \n", + "49 15860 1 \n", + "50 15860 1 \n", + "51 15860 1 \n", + "52 15860 1 \n", + "53 15860 1 \n", + "54 15860 1 \n", + "55 15860 1 " + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ncaa_team_results('Duke', 2022)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Example: Florida's per season " + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "alignmentgroup": "True", + "customdata": [ + [ + "William and Mary", + "2017-02-17T00:00:00" + ], + [ + "William and Mary", + "2017-02-18T00:00:00" + ], + [ + "William and Mary", + "2017-02-19T00:00:00" + ], + [ + "Jacksonville", + "2017-02-21T00:00:00" + ], + [ + "Miami, Florida", + "2017-02-24T00:00:00" + ], + [ + "Miami, Florida", + "2017-02-25T00:00:00" + ], + [ + "Miami, Florida", + "2017-02-26T00:00:00" + ], + [ + "Central Florida", + "2017-02-28T00:00:00" + ], + [ + "Central Florida", + "2017-03-01T00:00:00" + ], + [ + "Columbia", + "2017-03-03T00:00:00" + ], + [ + "Columbia", + "2017-03-04T00:00:00" + ], + [ + "Columbia", + "2017-03-05T00:00:00" + ], + [ + "Florida Gulf Coast", + "2017-03-07T00:00:00" + ], + [ + "Florida Gulf Coast", + "2017-03-08T00:00:00" + ], + [ + "Seton Hall", + "2017-03-10T00:00:00" + ], + [ + "Seton Hall", + "2017-03-11T00:00:00" + ], + [ + "Seton Hall", + "2017-03-11T00:00:00" + ], + [ + "Florida State", + "2017-03-14T00:00:00" + ], + [ + "Auburn", + "2017-03-17T00:00:00" + ], + [ + "Auburn", + "2017-03-18T00:00:00" + ], + [ + "Auburn", + "2017-03-19T00:00:00" + ], + [ + "Stetson", + "2017-03-21T00:00:00" + ], + [ + "Louisiana State", + "2017-03-24T00:00:00" + ], + [ + "Louisiana State", + "2017-03-25T00:00:00" + ], + [ + "Louisiana State", + "2017-03-26T00:00:00" + ], + [ + "Florida State", + "2017-03-28T00:00:00" + ], + [ + "Missouri", + "2017-03-31T00:00:00" + ], + [ + "Missouri", + "2017-04-01T00:00:00" + ], + [ + "Missouri", + "2017-04-02T00:00:00" + ], + [ + "Tennessee", + "2017-04-07T00:00:00" + ], + [ + "Tennessee", + "2017-04-08T00:00:00" + ], + [ + "Tennessee", + "2017-04-09T00:00:00" + ], + [ + "Florida State", + "2017-04-11T00:00:00" + ], + [ + "Vanderbilt", + "2017-04-13T00:00:00" + ], + [ + "Vanderbilt", + "2017-04-14T00:00:00" + ], + [ + "Vanderbilt", + "2017-04-15T00:00:00" + ], + [ + "North Florida", + "2017-04-18T00:00:00" + ], + [ + "South Carolina", + "2017-04-20T00:00:00" + ], + [ + "South Carolina", + "2017-04-21T00:00:00" + ], + [ + "South Carolina", + "2017-04-22T00:00:00" + ], + [ + "Georgia", + "2017-04-28T00:00:00" + ], + [ + "Georgia", + "2017-04-29T00:00:00" + ], + [ + "Georgia", + "2017-04-30T00:00:00" + ], + [ + "Florida A&M", + "2017-05-02T00:00:00" + ], + [ + "Jacksonville", + "2017-05-03T00:00:00" + ], + [ + "Mississippi", + "2017-05-05T00:00:00" + ], + [ + "Mississippi", + "2017-05-06T00:00:00" + ], + [ + "Mississippi", + "2017-05-07T00:00:00" + ], + [ + "South Florida", + "2017-05-09T00:00:00" + ], + [ + "Alabama", + "2017-05-12T00:00:00" + ], + [ + "Alabama", + "2017-05-13T00:00:00" + ], + [ + "Alabama", + "2017-05-14T00:00:00" + ], + [ + "Kentucky", + "2017-05-18T00:00:00" + ], + [ + "Kentucky", + "2017-05-19T00:00:00" + ], + [ + "Kentucky", + "2017-05-20T00:00:00" + ], + [ + "Auburn", + "2017-05-24T00:00:00" + ], + [ + "Mississippi State", + "2017-05-26T00:00:00" + ], + [ + "Arkansas", + "2017-05-27T00:00:00" + ], + [ + "Marist", + "2017-06-02T00:00:00" + ], + [ + "South Florida", + "2017-06-03T00:00:00" + ], + [ + "Bethune-Cookman", + "2017-06-04T00:00:00" + ], + [ + "Bethune-Cookman", + "2017-06-05T00:00:00" + ], + [ + "Wake Forest", + "2017-06-10T00:00:00" + ], + [ + "Wake Forest", + "2017-06-12T00:00:00" + ], + [ + "Wake Forest", + "2017-06-12T00:00:00" + ], + [ + "Texas Christian", + "2017-06-18T00:00:00" + ], + [ + "Louisville", + "2017-06-20T00:00:00" + ], + [ + "Texas Christian", + "2017-06-23T00:00:00" + ], + [ + "Texas Christian", + "2017-06-24T00:00:00" + ], + [ + "Louisiana State", + "2017-06-26T00:00:00" + ], + [ + "Louisiana State", + "2017-06-27T00:00:00" + ], + [ + "Siena", + "2018-02-16T00:00:00" + ], + [ + "Siena", + "2018-02-17T00:00:00" + ], + [ + "Siena", + "2018-02-18T00:00:00" + ], + [ + "Florida Atlantic", + "2018-02-20T00:00:00" + ], + [ + "Bethune-Cookman", + "2018-02-21T00:00:00" + ], + [ + "Miami, Florida", + "2018-02-23T00:00:00" + ], + [ + "Miami, Florida", + "2018-02-24T00:00:00" + ], + [ + "Miami, Florida", + "2018-02-25T00:00:00" + ], + [ + "North Florida", + "2018-02-27T00:00:00" + ], + [ + "North Florida", + "2018-02-28T00:00:00" + ], + [ + "Stony Brook", + "2018-03-02T00:00:00" + ], + [ + "Stony Brook", + "2018-03-03T00:00:00" + ], + [ + "Stony Brook", + "2018-03-04T00:00:00" + ], + [ + "Central Florida", + "2018-03-06T00:00:00" + ], + [ + "Central Florida", + "2018-03-07T00:00:00" + ], + [ + "Rhode Island", + "2018-03-09T00:00:00" + ], + [ + "Rhode Island", + "2018-03-10T00:00:00" + ], + [ + "Rhode Island", + "2018-03-10T00:00:00" + ], + [ + "Florida State", + "2018-03-13T00:00:00" + ], + [ + "South Carolina", + "2018-03-16T00:00:00" + ], + [ + "South Carolina", + "2018-03-17T00:00:00" + ], + [ + "South Carolina", + "2018-03-18T00:00:00" + ], + [ + "Jacksonville", + "2018-03-21T00:00:00" + ], + [ + "Arkansas", + "2018-03-23T00:00:00" + ], + [ + "Arkansas", + "2018-03-24T00:00:00" + ], + [ + "Arkansas", + "2018-03-25T00:00:00" + ], + [ + "Florida State", + "2018-03-27T00:00:00" + ], + [ + "Vanderbilt", + "2018-03-30T00:00:00" + ], + [ + "Vanderbilt", + "2018-03-31T00:00:00" + ], + [ + "Vanderbilt", + "2018-04-01T00:00:00" + ], + [ + "Florida Gulf Coast", + "2018-04-03T00:00:00" + ], + [ + "Tennessee", + "2018-04-07T00:00:00" + ], + [ + "Tennessee", + "2018-04-08T00:00:00" + ], + [ + "Tennessee", + "2018-04-08T00:00:00" + ], + [ + "Florida State", + "2018-04-10T00:00:00" + ], + [ + "Missouri", + "2018-04-13T00:00:00" + ], + [ + "Missouri", + "2018-04-14T00:00:00" + ], + [ + "Missouri", + "2018-04-14T00:00:00" + ], + [ + "Jacksonville", + "2018-04-17T00:00:00" + ], + [ + "Kentucky", + "2018-04-19T00:00:00" + ], + [ + "Kentucky", + "2018-04-20T00:00:00" + ], + [ + "Kentucky", + "2018-04-21T00:00:00" + ], + [ + "Mercer", + "2018-04-24T00:00:00" + ], + [ + "Auburn", + "2018-04-26T00:00:00" + ], + [ + "Auburn", + "2018-04-27T00:00:00" + ], + [ + "Auburn", + "2018-04-28T00:00:00" + ], + [ + "Texas A&M", + "2018-05-04T00:00:00" + ], + [ + "Texas A&M", + "2018-05-05T00:00:00" + ], + [ + "Texas A&M", + "2018-05-06T00:00:00" + ], + [ + "South Florida", + "2018-05-08T00:00:00" + ], + [ + "Georgia", + "2018-05-11T00:00:00" + ], + [ + "Georgia", + "2018-05-12T00:00:00" + ], + [ + "Georgia", + "2018-05-13T00:00:00" + ], + [ + "Mississippi State", + "2018-05-17T00:00:00" + ], + [ + "Mississippi State", + "2018-05-18T00:00:00" + ], + [ + "Mississippi State", + "2018-05-19T00:00:00" + ], + [ + "Louisiana State", + "2018-05-23T00:00:00" + ], + [ + "Arkansas", + "2018-05-25T00:00:00" + ], + [ + "Louisiana State", + "2018-05-26T00:00:00" + ], + [ + "Columbia", + "2018-06-01T00:00:00" + ], + [ + "Jacksonville", + "2018-06-02T00:00:00" + ], + [ + "Florida Atlantic", + "2018-06-04T00:00:00" + ], + [ + "Florida Atlantic", + "2018-06-04T00:00:00" + ], + [ + "Auburn", + "2018-06-09T00:00:00" + ], + [ + "Auburn", + "2018-06-10T00:00:00" + ], + [ + "Auburn", + "2018-06-11T00:00:00" + ], + [ + "Texas Tech", + "2018-06-17T00:00:00" + ], + [ + "Texas", + "2018-06-19T00:00:00" + ], + [ + "Texas Tech", + "2018-06-21T00:00:00" + ], + [ + "Arkansas", + "2018-06-22T00:00:00" + ], + [ + "Long Beach State", + "2019-02-15T00:00:00" + ], + [ + "Long Beach State", + "2019-02-16T00:00:00" + ], + [ + "Long Beach State", + "2019-02-17T00:00:00" + ], + [ + "South Florida", + "2019-02-19T00:00:00" + ], + [ + "North Florida", + "2019-02-20T00:00:00" + ], + [ + "Miami, Florida", + "2019-02-22T00:00:00" + ], + [ + "Miami, Florida", + "2019-02-23T00:00:00" + ], + [ + "Miami, Florida", + "2019-02-24T00:00:00" + ], + [ + "Jacksonville", + "2019-02-26T00:00:00" + ], + [ + "Central Florida", + "2019-02-27T00:00:00" + ], + [ + "Winthrop", + "2019-03-01T00:00:00" + ], + [ + "Winthrop", + "2019-03-03T00:00:00" + ], + [ + "Winthrop", + "2019-03-03T00:00:00" + ], + [ + "Florida Gulf Coast", + "2019-03-05T00:00:00" + ], + [ + "Florida Gulf Coast", + "2019-03-06T00:00:00" + ], + [ + "Yale", + "2019-03-08T00:00:00" + ], + [ + "Yale", + "2019-03-09T00:00:00" + ], + [ + "Yale", + "2019-03-10T00:00:00" + ], + [ + "Florida State", + "2019-03-12T00:00:00" + ], + [ + "Mississippi State", + "2019-03-15T00:00:00" + ], + [ + "Mississippi State", + "2019-03-16T00:00:00" + ], + [ + "Mississippi State", + "2019-03-16T00:00:00" + ], + [ + "Jacksonville", + "2019-03-19T00:00:00" + ], + [ + "Vanderbilt", + "2019-03-21T00:00:00" + ], + [ + "Vanderbilt", + "2019-03-22T00:00:00" + ], + [ + "Vanderbilt", + "2019-03-23T00:00:00" + ], + [ + "Florida State", + "2019-03-26T00:00:00" + ], + [ + "Alabama", + "2019-03-29T00:00:00" + ], + [ + "Alabama", + "2019-03-30T00:00:00" + ], + [ + "Alabama", + "2019-03-31T00:00:00" + ], + [ + "Florida A&M", + "2019-04-02T00:00:00" + ], + [ + "Mississippi", + "2019-04-05T00:00:00" + ], + [ + "Mississippi", + "2019-04-06T00:00:00" + ], + [ + "Mississippi", + "2019-04-06T00:00:00" + ], + [ + "Florida State", + "2019-04-09T00:00:00" + ], + [ + "South Carolina", + "2019-04-11T00:00:00" + ], + [ + "South Carolina", + "2019-04-12T00:00:00" + ], + [ + "South Carolina", + "2019-04-13T00:00:00" + ], + [ + "Jacksonville", + "2019-04-16T00:00:00" + ], + [ + "Louisiana State", + "2019-04-18T00:00:00" + ], + [ + "Louisiana State", + "2019-04-19T00:00:00" + ], + [ + "Louisiana State", + "2019-04-20T00:00:00" + ], + [ + "Florida Atlantic", + "2019-04-23T00:00:00" + ], + [ + "Kentucky", + "2019-04-26T00:00:00" + ], + [ + "Kentucky", + "2019-04-27T00:00:00" + ], + [ + "Kentucky", + "2019-04-28T00:00:00" + ], + [ + "Georgia", + "2019-05-03T00:00:00" + ], + [ + "Georgia", + "2019-05-05T00:00:00" + ], + [ + "Georgia", + "2019-05-05T00:00:00" + ], + [ + "South Florida", + "2019-05-07T00:00:00" + ], + [ + "Tennessee", + "2019-05-10T00:00:00" + ], + [ + "Tennessee", + "2019-05-11T00:00:00" + ], + [ + "Tennessee", + "2019-05-12T00:00:00" + ], + [ + "Missouri", + "2019-05-16T00:00:00" + ], + [ + "Missouri", + "2019-05-17T00:00:00" + ], + [ + "Missouri", + "2019-05-18T00:00:00" + ], + [ + "Texas A&M", + "2019-05-21T00:00:00" + ], + [ + "Dallas Baptist", + "2019-05-31T00:00:00" + ], + [ + "Army", + "2019-06-01T00:00:00" + ], + [ + "Dallas Baptist", + "2019-06-02T00:00:00" + ], + [ + "Marshall", + "2020-02-14T00:00:00" + ], + [ + "Marshall", + "2020-02-15T00:00:00" + ], + [ + "Marshall", + "2020-02-16T00:00:00" + ], + [ + "Jacksonville", + "2020-02-18T00:00:00" + ], + [ + "Jacksonville", + "2020-02-19T00:00:00" + ], + [ + "Miami, Florida", + "2020-02-21T00:00:00" + ], + [ + "Miami, Florida", + "2020-02-22T00:00:00" + ], + [ + "Miami, Florida", + "2020-02-23T00:00:00" + ], + [ + "Troy", + "2020-02-28T00:00:00" + ], + [ + "Troy", + "2020-02-29T00:00:00" + ], + [ + "Troy", + "2020-03-01T00:00:00" + ], + [ + "Florida Atlantic", + "2020-03-03T00:00:00" + ], + [ + "Florida A&M", + "2020-03-04T00:00:00" + ], + [ + "South Florida", + "2020-03-06T00:00:00" + ], + [ + "South Florida", + "2020-03-07T00:00:00" + ], + [ + "South Florida", + "2020-03-08T00:00:00" + ], + [ + "Florida State", + "2020-03-10T00:00:00" + ], + [ + "Miami, Florida", + "2021-02-19T00:00:00" + ], + [ + "Miami, Florida", + "2021-02-20T00:00:00" + ], + [ + "Miami, Florida", + "2021-02-21T00:00:00" + ], + [ + "North Florida", + "2021-02-23T00:00:00" + ], + [ + "North Florida", + "2021-02-24T00:00:00" + ], + [ + "Samford", + "2021-02-26T00:00:00" + ], + [ + "Samford", + "2021-02-27T00:00:00" + ], + [ + "Samford", + "2021-02-28T00:00:00" + ], + [ + "Florida Atlantic", + "2021-03-03T00:00:00" + ], + [ + "Florida A&M", + "2021-03-05T00:00:00" + ], + [ + "Florida A&M", + "2021-03-05T00:00:00" + ], + [ + "Florida A&M", + "2021-03-07T00:00:00" + ], + [ + "Georgia State", + "2021-03-09T00:00:00" + ], + [ + "Stetson", + "2021-03-10T00:00:00" + ], + [ + "Jacksonville", + "2021-03-12T00:00:00" + ], + [ + "Jacksonville", + "2021-03-13T00:00:00" + ], + [ + "Jacksonville", + "2021-03-14T00:00:00" + ], + [ + "Florida State", + "2021-03-16T00:00:00" + ], + [ + "Texas A&M", + "2021-03-18T00:00:00" + ], + [ + "Texas A&M", + "2021-03-19T00:00:00" + ], + [ + "Texas A&M", + "2021-03-20T00:00:00" + ], + [ + "South Carolina", + "2021-03-26T00:00:00" + ], + [ + "South Carolina", + "2021-03-27T00:00:00" + ], + [ + "South Carolina", + "2021-03-28T00:00:00" + ], + [ + "Mississippi", + "2021-04-01T00:00:00" + ], + [ + "Mississippi", + "2021-04-02T00:00:00" + ], + [ + "Mississippi", + "2021-04-03T00:00:00" + ], + [ + "Stetson", + "2021-04-06T00:00:00" + ], + [ + "Florida A&M", + "2021-04-07T00:00:00" + ], + [ + "Tennessee", + "2021-04-09T00:00:00" + ], + [ + "Tennessee", + "2021-04-10T00:00:00" + ], + [ + "Tennessee", + "2021-04-11T00:00:00" + ], + [ + "Florida State", + "2021-04-13T00:00:00" + ], + [ + "Missouri", + "2021-04-16T00:00:00" + ], + [ + "Missouri", + "2021-04-17T00:00:00" + ], + [ + "Missouri", + "2021-04-17T00:00:00" + ], + [ + "Jacksonville", + "2021-04-20T00:00:00" + ], + [ + "Auburn", + "2021-04-23T00:00:00" + ], + [ + "Auburn", + "2021-04-25T00:00:00" + ], + [ + "Auburn", + "2021-04-25T00:00:00" + ], + [ + "Vanderbilt", + "2021-04-30T00:00:00" + ], + [ + "Vanderbilt", + "2021-05-01T00:00:00" + ], + [ + "Vanderbilt", + "2021-05-02T00:00:00" + ], + [ + "Stetson", + "2021-05-04T00:00:00" + ], + [ + "Kentucky", + "2021-05-06T00:00:00" + ], + [ + "Kentucky", + "2021-05-07T00:00:00" + ], + [ + "Kentucky", + "2021-05-08T00:00:00" + ], + [ + "Stetson", + "2021-05-11T00:00:00" + ], + [ + "Georgia", + "2021-05-14T00:00:00" + ], + [ + "Georgia", + "2021-05-15T00:00:00" + ], + [ + "Georgia", + "2021-05-16T00:00:00" + ], + [ + "Arkansas", + "2021-05-20T00:00:00" + ], + [ + "Arkansas", + "2021-05-21T00:00:00" + ], + [ + "Arkansas", + "2021-05-22T00:00:00" + ], + [ + "Kentucky", + "2021-05-25T00:00:00" + ], + [ + "Mississippi State", + "2021-05-26T00:00:00" + ], + [ + "Alabama", + "2021-05-27T00:00:00" + ], + [ + "Tennessee", + "2021-05-29T00:00:00" + ], + [ + "South Florida", + "2021-06-04T00:00:00" + ], + [ + "South Alabama", + "2021-06-05T00:00:00" + ] + ], + "hovertemplate": "index=%{x}
cum. run difference=%{y}
opponent=%{customdata[0]}
date=%{customdata[1]}
season=%{marker.color}", + "legendgroup": "", + "marker": { + "color": [ + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2017, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2018, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2019, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2020, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021, + 2021 + ], + "coloraxis": "coloraxis", + "pattern": { + "shape": "" + } + }, + "name": "", + "offsetgroup": "", + "orientation": "v", + "showlegend": false, + "textposition": "auto", + "type": "bar", + "x": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277 + ], + "xaxis": "x", + "y": [ + 1, + 8, + 13, + 12, + 13, + 15, + 19, + 20, + 11, + 18, + 23, + 27, + 23, + 22, + 30, + 29, + 30, + 31, + 20, + 19, + 18, + 19, + 20, + 27, + 23, + 26, + 27, + 28, + 29, + 28, + 27, + 28, + 31, + 35, + 33, + 45, + 46, + 47, + 45, + 47, + 49, + 52, + 53, + 54, + 58, + 67, + 70, + 72, + 67, + 68, + 75, + 80, + 72, + 83, + 85, + 86, + 95, + 79, + 83, + 87, + 83, + 88, + 89, + 87, + 90, + 93, + 97, + 90, + 93, + 94, + 99, + 6, + 14, + 31, + 36, + 39, + 43, + 49, + 47, + 51, + 56, + 63, + 71, + 73, + 71, + 69, + 78, + 79, + 86, + 92, + 96, + 88, + 89, + 96, + 93, + 108, + 109, + 110, + 114, + 122, + 128, + 132, + 148, + 150, + 148, + 151, + 153, + 161, + 166, + 162, + 171, + 176, + 175, + 173, + 175, + 169, + 178, + 187, + 192, + 188, + 191, + 192, + 198, + 195, + 192, + 184, + 177, + 178, + 172, + 161, + 169, + 170, + 167, + 170, + 176, + 175, + 176, + 173, + 178, + 181, + 178, + 6, + 9, + 11, + 6, + 0, + -3, + 3, + 6, + 7, + 4, + 16, + 18, + 41, + 56, + 51, + 52, + 66, + 67, + 80, + 79, + 81, + 76, + 81, + 76, + 63, + 53, + 55, + 57, + 66, + 69, + 80, + 72, + 70, + 58, + 60, + 64, + 61, + 63, + 67, + 74, + 62, + 53, + 51, + 53, + 49, + 53, + 51, + 48, + 40, + 44, + 45, + 44, + 43, + 44, + 46, + 47, + 46, + 43, + 51, + 50, + 7, + 17, + 24, + 34, + 35, + 36, + 39, + 41, + 42, + 45, + 51, + 55, + 60, + 68, + 78, + 79, + 77, + 2, + 1, + -1, + 2, + 7, + 11, + 27, + 28, + 27, + 35, + 39, + 47, + 51, + 54, + 53, + 62, + 65, + 57, + 66, + 68, + 72, + 71, + 68, + 65, + 68, + 62, + 63, + 64, + 74, + 72, + 71, + 72, + 73, + 76, + 78, + 80, + 81, + 83, + 85, + 83, + 79, + 82, + 84, + 87, + 85, + 88, + 95, + 90, + 91, + 98, + 93, + 88, + 87, + 81, + 84, + 96, + 101, + 97, + 95, + 77 + ], + "yaxis": "y" + } + ], + "layout": { + "barmode": "relative", + "coloraxis": { + "colorbar": { + "title": { + "text": "season" + } + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "showscale": false + }, + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "b": 20, + "l": 40, + "r": 20, + "t": 40 + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "surface" + } + ], + "table": [ + { + "cells": { + "fill": { + "color": "#EBF0F8" + }, + "line": { + "color": "white" + } + }, + "header": { + "fill": { + "color": "#C8D4E3" + }, + "line": { + "color": "white" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowcolor": "#2a3f5f", + "arrowhead": 0, + "arrowwidth": 1 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "colorscale": { + "diverging": [ + [ + 0, + "#8e0152" + ], + [ + 0.1, + "#c51b7d" + ], + [ + 0.2, + "#de77ae" + ], + [ + 0.3, + "#f1b6da" + ], + [ + 0.4, + "#fde0ef" + ], + [ + 0.5, + "#f7f7f7" + ], + [ + 0.6, + "#e6f5d0" + ], + [ + 0.7, + "#b8e186" + ], + [ + 0.8, + "#7fbc41" + ], + [ + 0.9, + "#4d9221" + ], + [ + 1, + "#276419" + ] + ], + "sequential": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ] + }, + "colorway": [ + "#636efa", + "#EF553B", + "#00cc96", + "#ab63fa", + "#FFA15A", + "#19d3f3", + "#FF6692", + "#B6E880", + "#FF97FF", + "#FECB52" + ], + "font": { + "color": "#2a3f5f" + }, + "geo": { + "bgcolor": "white", + "lakecolor": "white", + "landcolor": "#E5ECF6", + "showlakes": true, + "showland": true, + "subunitcolor": "white" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "mapbox": { + "style": "light" + }, + "paper_bgcolor": "white", + "plot_bgcolor": "#E5ECF6", + "polar": { + "angularaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "radialaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "yaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "zaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + } + }, + "shapedefaults": { + "line": { + "color": "#2a3f5f" + } + }, + "ternary": { + "aaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "baxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "caxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "title": { + "x": 0.05 + }, + "xaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + }, + "title": { + "font": { + "size": 15 + }, + "text": "Cumulative Run Differential
2017 to 2022", + "x": 0.5, + "xanchor": "center", + "yanchor": "top" + }, + "xaxis": { + "anchor": "y", + "domain": [ + 0, + 1 + ], + "title": { + "text": "Games Played" + } + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "ticklabelposition": "inside top", + "title": { + "text": "Cumulative Run Differential" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "res = pd.DataFrame()\n", + "for season in range(2017, 2022):\n", + " data = boydsworld_team_results('Florida', season)\n", + " data[\"season\"] = data.date.dt.year\n", + " data[\"cum_rd\"] = data.run_difference.cumsum()\n", + " res = pd.concat([res, data], ignore_index=True)\n", + "res.set_index(\"date\").reset_index()\n", + "fig = px.bar(res, x=res.index, y=\"cum_rd\", hover_data=[\"opponent\", \"date\"], color=\"season\",\n", + " labels={\"cum_rd\": \"cum. run difference\"})\n", + "fig.update_layout(\n", + " title=\"Cumulative Run Differential
\" +\n", + " str(2017)+\" to \"+str(2022)+\"\",\n", + " title_font_size=15,\n", + " title_xanchor=\"center\",\n", + " title_yanchor=\"top\",\n", + " title_x=0.5,\n", + " yaxis_title=\"Cumulative Run Differential\",\n", + " xaxis_title=\"Games Played\",\n", + " margin=dict(l=40, r=20, t=40, b=20)\n", + ")\n", + "fig.update_yaxes(\n", + " ticklabelposition=\"inside top\",\n", + ")\n", + "fig.update_coloraxes(showscale=False)\n", + "fig.show()\n" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0.672\n", + "0.638\n" + ] + } + ], + "source": [ + "print(calculate_actual_win_pct(boydsworld_team_results('Florida', 2017, 2022))[0])\n", + "print(calculate_pythagenpat_win_pct(boydsworld_team_results('Florida', 2017, 2022))[0])\n" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Jerseystats_player_seqnameYrposGPGSRABH...OPSISOHR/PAK/PABB/PAK/BBBABIPwOBAwRAAwRC
072309992Douglas HodoSoOF69697328290...0.9440.2130.0290.2180.1241.7620.3980.42921.52174.901
142309989Silas ArdoinSoC69684824065...0.9010.2410.0410.1550.1321.1790.2850.41012.99459.466
202309986Trey FaltineSoINF69696024168...0.9470.2700.0520.3570.1133.1520.4240.42416.93462.621
3142309972Murphy StehlySrINF686865278102...1.0850.2950.0610.1380.0542.5290.3790.47835.35784.341
4172471763Ivan MelendezJrINF67677524896...1.4050.4760.1040.1660.1690.9810.3810.59270.750119.106
5192471769Mitchell DalySoINF67593420749...0.7070.1300.0150.1810.1241.4690.2800.335-8.46132.202
651997666Skyler MessingerSrINF67654625091...0.9660.1960.0390.2050.0643.2220.4320.43218.78063.211
782471765Dylan CampbellSoINF65474017647...0.8640.2270.0470.1710.1371.2410.2760.3935.60138.728
8441872493Austin ToddSrOF51493818762...0.8860.1490.0270.0910.1050.8700.3410.4058.53543.075
9302120673Eric KennedyJrOF45424217051...0.8470.1710.0350.1530.0991.5500.3280.3874.12535.839
13282661707Ace WhiteheadFrP25181810...1.2860.1110.0000.2380.1431.6670.7690.5984.9538.250
15272485662Jack O'DowdSoINF2178399...0.6480.0770.0210.1280.1281.0000.2500.321-2.2075.172
23102480203Kimble SchuesslerSoC1743207...0.9170.1500.0420.2500.1252.0000.4620.4181.2505.018
2462661687Gavin KashFrINF1641234...0.4860.0430.0000.3460.0389.0000.2860.252-3.0531.029
28292310015Cam ConstantineSoOF101070...0.1110.0000.0000.4440.0000.0000.0000.089-2.554-1.141
30152309996Peyton PowellSoC61082...0.5830.0000.0000.4440.1114.0000.5000.298-0.6340.779
31542661717Cameron DaytonJrP50020...0.0000.0000.0000.5000.0000.0000.0000.000-0.749-0.435
\n", + "

17 rows × 43 columns

\n", + "
" + ], + "text/plain": [ + " Jersey stats_player_seq name Yr pos GP GS R AB \\\n", + "0 7 2309992 Douglas Hodo So OF 69 69 73 282 \n", + "1 4 2309989 Silas Ardoin So C 69 68 48 240 \n", + "2 0 2309986 Trey Faltine So INF 69 69 60 241 \n", + "3 14 2309972 Murphy Stehly Sr INF 68 68 65 278 \n", + "4 17 2471763 Ivan Melendez Jr INF 67 67 75 248 \n", + "5 19 2471769 Mitchell Daly So INF 67 59 34 207 \n", + "6 5 1997666 Skyler Messinger Sr INF 67 65 46 250 \n", + "7 8 2471765 Dylan Campbell So INF 65 47 40 176 \n", + "8 44 1872493 Austin Todd Sr OF 51 49 38 187 \n", + "9 30 2120673 Eric Kennedy Jr OF 45 42 42 170 \n", + "13 28 2661707 Ace Whitehead Fr P 25 1 8 18 \n", + "15 27 2485662 Jack O'Dowd So INF 21 7 8 39 \n", + "23 10 2480203 Kimble Schuessler So C 17 4 3 20 \n", + "24 6 2661687 Gavin Kash Fr INF 16 4 1 23 \n", + "28 29 2310015 Cam Constantine So OF 10 1 0 7 \n", + "30 15 2309996 Peyton Powell So C 6 1 0 8 \n", + "31 54 2661717 Cameron Dayton Jr P 5 0 0 2 \n", + "\n", + " H ... OPS ISO HR/PA K/PA BB/PA K/BB BABIP wOBA wRAA \\\n", + "0 90 ... 0.944 0.213 0.029 0.218 0.124 1.762 0.398 0.429 21.521 \n", + "1 65 ... 0.901 0.241 0.041 0.155 0.132 1.179 0.285 0.410 12.994 \n", + "2 68 ... 0.947 0.270 0.052 0.357 0.113 3.152 0.424 0.424 16.934 \n", + "3 102 ... 1.085 0.295 0.061 0.138 0.054 2.529 0.379 0.478 35.357 \n", + "4 96 ... 1.405 0.476 0.104 0.166 0.169 0.981 0.381 0.592 70.750 \n", + "5 49 ... 0.707 0.130 0.015 0.181 0.124 1.469 0.280 0.335 -8.461 \n", + "6 91 ... 0.966 0.196 0.039 0.205 0.064 3.222 0.432 0.432 18.780 \n", + "7 47 ... 0.864 0.227 0.047 0.171 0.137 1.241 0.276 0.393 5.601 \n", + "8 62 ... 0.886 0.149 0.027 0.091 0.105 0.870 0.341 0.405 8.535 \n", + "9 51 ... 0.847 0.171 0.035 0.153 0.099 1.550 0.328 0.387 4.125 \n", + "13 10 ... 1.286 0.111 0.000 0.238 0.143 1.667 0.769 0.598 4.953 \n", + "15 9 ... 0.648 0.077 0.021 0.128 0.128 1.000 0.250 0.321 -2.207 \n", + "23 7 ... 0.917 0.150 0.042 0.250 0.125 2.000 0.462 0.418 1.250 \n", + "24 4 ... 0.486 0.043 0.000 0.346 0.038 9.000 0.286 0.252 -3.053 \n", + "28 0 ... 0.111 0.000 0.000 0.444 0.000 0.000 0.000 0.089 -2.554 \n", + "30 2 ... 0.583 0.000 0.000 0.444 0.111 4.000 0.500 0.298 -0.634 \n", + "31 0 ... 0.000 0.000 0.000 0.500 0.000 0.000 0.000 0.000 -0.749 \n", + "\n", + " wRC \n", + "0 74.901 \n", + "1 59.466 \n", + "2 62.621 \n", + "3 84.341 \n", + "4 119.106 \n", + "5 32.202 \n", + "6 63.211 \n", + "7 38.728 \n", + "8 43.075 \n", + "9 35.839 \n", + "13 8.250 \n", + "15 5.172 \n", + "23 5.018 \n", + "24 1.029 \n", + "28 -1.141 \n", + "30 0.779 \n", + "31 -0.435 \n", + "\n", + "[17 rows x 43 columns]" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ncaa_team_stats('Texas', 2022, 'batting')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Jerseystats_player_seqnameYrposGPGSRABH...OPSISOHR/PAK/PABB/PAK/BBBABIPwOBAwRAAwRC
032486493Kyle TeelSoC58586222161...0.8400.1630.0220.1300.1480.8780.2990.3978.48451.973
1222486499Jake GelofSoINF58586521280...1.2700.3870.0820.1910.1601.1950.4010.54446.44186.790
262662244Griff O'FerrallFrINF58585622770...0.7710.0580.0070.0950.1390.6840.3350.3741.95844.976
3131983429Alex TappenSrINF58585022783...1.0310.2460.0500.1540.0732.1050.3890.45723.89064.710
471983426Devin OrtizSrINF58584721762...0.8310.1520.0270.1300.1221.0620.3040.3895.88547.019
592306474Chris NewellJrOF54545119049...0.8470.2100.0510.2810.1402.0000.3270.3915.75842.653
682662234Casey SauckeFrINF53504418667...1.0290.2310.0320.2860.1062.6960.5000.46421.49055.559
7232662248Ethan AndersonFrC50413515948...0.9000.1950.0270.2040.1131.8100.3710.4189.68538.887
822306457Max CotierJrINF45362413635...0.6300.0440.0000.1610.1121.4440.3150.307-9.86215.415
9212662237Colin TuftFrC3723309628...0.7850.0830.0090.1540.1111.3850.3460.3862.27020.639
10122662245Justin RubinFrINF3622198729...0.8610.1150.0100.0670.1060.6360.3540.4054.03520.363
1142662233Jay WoolfolkFrP290010...0.0000.0000.0000.0000.0000.0000.0000.000-0.375-0.218
14252662249Matthew BuchananFrP234040...0.0000.0000.0000.7500.0000.0000.0000.000-1.499-0.871
15162662246Anthony StephanFrINF2126255...0.5930.0400.0000.1180.1760.6670.2170.312-1.9093.429
17312127043Jimmy SullivanSrOF1912184...0.5550.0000.0000.1430.0951.5000.2670.294-1.5651.732
22102662235Tristan ShoemakerFrINF1513193...0.4490.0530.0000.1900.0952.0000.2000.227-3.0020.295
27112486494Addie BurrowSoOF50232...1.3340.0000.0000.3330.0000.0001.0000.6330.8151.286
2852127033Drew HamrockSrC423103...0.8170.1000.0000.0830.0831.0000.3330.3990.3922.276
\n", + "

18 rows × 43 columns

\n", + "
" + ], + "text/plain": [ + " Jersey stats_player_seq name Yr pos GP GS R AB H \\\n", + "0 3 2486493 Kyle Teel So C 58 58 62 221 61 \n", + "1 22 2486499 Jake Gelof So INF 58 58 65 212 80 \n", + "2 6 2662244 Griff O'Ferrall Fr INF 58 58 56 227 70 \n", + "3 13 1983429 Alex Tappen Sr INF 58 58 50 227 83 \n", + "4 7 1983426 Devin Ortiz Sr INF 58 58 47 217 62 \n", + "5 9 2306474 Chris Newell Jr OF 54 54 51 190 49 \n", + "6 8 2662234 Casey Saucke Fr INF 53 50 44 186 67 \n", + "7 23 2662248 Ethan Anderson Fr C 50 41 35 159 48 \n", + "8 2 2306457 Max Cotier Jr INF 45 36 24 136 35 \n", + "9 21 2662237 Colin Tuft Fr C 37 23 30 96 28 \n", + "10 12 2662245 Justin Rubin Fr INF 36 22 19 87 29 \n", + "11 4 2662233 Jay Woolfolk Fr P 29 0 0 1 0 \n", + "14 25 2662249 Matthew Buchanan Fr P 23 4 0 4 0 \n", + "15 16 2662246 Anthony Stephan Fr INF 21 2 6 25 5 \n", + "17 31 2127043 Jimmy Sullivan Sr OF 19 1 2 18 4 \n", + "22 10 2662235 Tristan Shoemaker Fr INF 15 1 3 19 3 \n", + "27 11 2486494 Addie Burrow So OF 5 0 2 3 2 \n", + "28 5 2127033 Drew Hamrock Sr C 4 2 3 10 3 \n", + "\n", + " ... OPS ISO HR/PA K/PA BB/PA K/BB BABIP wOBA wRAA \\\n", + "0 ... 0.840 0.163 0.022 0.130 0.148 0.878 0.299 0.397 8.484 \n", + "1 ... 1.270 0.387 0.082 0.191 0.160 1.195 0.401 0.544 46.441 \n", + "2 ... 0.771 0.058 0.007 0.095 0.139 0.684 0.335 0.374 1.958 \n", + "3 ... 1.031 0.246 0.050 0.154 0.073 2.105 0.389 0.457 23.890 \n", + "4 ... 0.831 0.152 0.027 0.130 0.122 1.062 0.304 0.389 5.885 \n", + "5 ... 0.847 0.210 0.051 0.281 0.140 2.000 0.327 0.391 5.758 \n", + "6 ... 1.029 0.231 0.032 0.286 0.106 2.696 0.500 0.464 21.490 \n", + "7 ... 0.900 0.195 0.027 0.204 0.113 1.810 0.371 0.418 9.685 \n", + "8 ... 0.630 0.044 0.000 0.161 0.112 1.444 0.315 0.307 -9.862 \n", + "9 ... 0.785 0.083 0.009 0.154 0.111 1.385 0.346 0.386 2.270 \n", + "10 ... 0.861 0.115 0.010 0.067 0.106 0.636 0.354 0.405 4.035 \n", + "11 ... 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 -0.375 \n", + "14 ... 0.000 0.000 0.000 0.750 0.000 0.000 0.000 0.000 -1.499 \n", + "15 ... 0.593 0.040 0.000 0.118 0.176 0.667 0.217 0.312 -1.909 \n", + "17 ... 0.555 0.000 0.000 0.143 0.095 1.500 0.267 0.294 -1.565 \n", + "22 ... 0.449 0.053 0.000 0.190 0.095 2.000 0.200 0.227 -3.002 \n", + "27 ... 1.334 0.000 0.000 0.333 0.000 0.000 1.000 0.633 0.815 \n", + "28 ... 0.817 0.100 0.000 0.083 0.083 1.000 0.333 0.399 0.392 \n", + "\n", + " wRC \n", + "0 51.973 \n", + "1 86.790 \n", + "2 44.976 \n", + "3 64.710 \n", + "4 47.019 \n", + "5 42.653 \n", + "6 55.559 \n", + "7 38.887 \n", + "8 15.415 \n", + "9 20.639 \n", + "10 20.363 \n", + "11 -0.218 \n", + "14 -0.871 \n", + "15 3.429 \n", + "17 1.732 \n", + "22 0.295 \n", + "27 1.286 \n", + "28 2.276 \n", + "\n", + "[18 rows x 43 columns]" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ncaa_team_stats('Virginia', 2022, 'batting', split=None)" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(31, 1)" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "lookup_school('Arkansas')" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "2471763" + ] + }, + "execution_count": 32, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "lookup_player('Ivan Melendez', 'Texas')" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "('Dartmouth', 1)" + ] + }, + "execution_count": 34, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "lookup_school_reverse(172)\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3.10.0 64-bit ('collegebaseball')", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.0" + }, + "orig_nbformat": 4, + "vscode": { + "interpreter": { + "hash": "19507b7318de29918faf71e07de67844022187008b8f696e461a095aa2dbcfa9" + } + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}