Skip to content

Latest commit

 

History

History
121 lines (115 loc) · 2.16 KB

README.md

File metadata and controls

121 lines (115 loc) · 2.16 KB

Basketball2023

For basketball project team winter 2023

Contents:

  • main.py: Runs the model on a given .csv file
  • project_marchmadness_scraping.py: Scrapes data from the given year on basketball reference
  • CSV_Merger.ipynb: Merges two .csv files if their 'Team' column is identical
  • Json_format.ipynb: Converts a .csv into a .json file
  • merger.py: Merges two .csv files using 'Team' column with an outer join
  • Module1.bas: Implements a function that finds and changes many names in an Excel file, creating a column with the changed values
  • A variety of other data files and versions

Download

Download main.py and call it on an ranked .csv file formatted with combined data in the same directory to train the model. Then input an unranked combined .csv of teams in a March Madness bracket to rank those teams on how well it believes they will do in the tournament.

.csv Input Indexes

  1. Num
  2. Rk
  3. Team
  4. Conf
  5. W/L
  6. AdjEM
  7. AdjO
  8. AdjD
  9. AdjT
  10. Luck
  11. AdjEM.1
  12. OppO
  13. OppD
  14. AdjEM.2
  15. FG
  16. FGA
  17. FGpct
  18. 2PT
  19. 2PTA
  20. 2PTpct
  21. 3PT
  22. 3PTA
  23. 3PTpct
  24. FT
  25. FTA
  26. FTpct
  27. ORB
  28. DRB
  29. TRB
  30. AST
  31. STL
  32. BLK
  33. TOV
  34. PF
  35. PTS
  36. FG_RANK
  37. FGA_RANK
  38. FGpct_RANK
  39. 2PT_RANK
  40. 2PTA_RANK
  41. 2PTpct_RANK
  42. 3PT_RANK
  43. 3PTA_RANK
  44. 3PTpct_RANK
  45. FT_RANK
  46. FTA_RANK
  47. FTpct_RANK
  48. ORB_RANK
  49. DRB_RANK
  50. TRB_RANK
  51. AST_RANK
  52. STL_RANK
  53. BLK_RANK
  54. TOV_RANK
  55. PF_RANK
  56. PTS_RANK
  57. OPP_FG
  58. OPP_FGA
  59. OPP_FGpct
  60. OPP_2PT
  61. OPP_2PTA
  62. OPP_2PTpct
  63. OPP_3PT
  64. OPP_3PTA
  65. OPP_3PTpct
  66. OPP_FT
  67. OPP_FTA
  68. OPP_FTpct
  69. OPP_ORB
  70. OPP_DRB
  71. OPP_TRB
  72. OPP_AST
  73. OPP_STL
  74. OPP_BLK
  75. OPP_TOV
  76. OPP_PF
  77. OPP_PTS
  78. OPP_FG_RANK
  79. OPP_FGA_RANK
  80. OPP_FGpct_RANK
  81. OPP_2PT_RANK
  82. OPP_2PTA_RANK
  83. OPP_2PTpct_RANK
  84. OPP_3PT_RANK
  85. OPP_3PTA_RANK
  86. OPP_3PTpct_RANK
  87. OPP_FT_RANK
  88. OPP_FTA_RANK
  89. OPP_FTpct_RANK
  90. OPP_ORB_RANK
  91. OPP_DRB_RANK
  92. OPP_TRB_RANK
  93. OPP_AST_RANK
  94. OPP_STL_RANK
  95. OPP_BLK_RANK
  96. OPP_TOV_RANK
  97. OPP_PF_RANK
  98. OPP_PTS_RANK
  99. Rank (only in ranked datasets)
  100. Round (only in ranked datasets)

And easily scalable to more data.