Skip to content

Commit

Permalink
Merge pull request #61 from sportsdataverse/polars-conv
Browse files Browse the repository at this point in the history
v0.37.0: Polars conv
  • Loading branch information
saiemgilani authored Aug 8, 2023
2 parents 4343fa4 + e45322d commit a5ed32c
Show file tree
Hide file tree
Showing 163 changed files with 19,939 additions and 17,961 deletions.
8 changes: 8 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[flake8]
max-line-length = 120
max-complexity = 18
select = B,C,E,F,W,T4,B9
extend-ignore = E203, E265, E266, E400, E501, E712, W503, B905, B907
enable-extensions = G
import-order-style = google
application-import-names = sportsdataverse,test
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ docs/node_modules
build
dist
*.ipynb
.ipynb_checkpoints
./.ipynb_checkpoints
*/.ipynb_checkpoints
*.egg-info
47 changes: 46 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,52 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# - repo: local
# hooks:
# - id: update-docs
# name: update-docs
# entry: bash create_docs.sh
# language: system
# types: [python]
# pass_filenames: false

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-ast
- id: check-toml
- id: check-json
- id: check-xml
- id: check-yaml
- id: check-symlinks
- id: check-vcs-permalinks
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: check-added-large-files
args: [--maxkb=10000]
- id: debug-statements

- repo: https://github.com/psf/black
rev: '23.1.0'
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: '5.12.0'
hooks:
- id: isort
- repo: https://github.com/hadialqattan/pycln
rev: 'v2.1.5'
hooks:
- id: pycln
args: ['.', "--all"]
# - repo: https://github.com/pycqa/flake8
# rev: '3.9.2'
# hooks:
# - id: flake8
# - repo: https://github.com/pycqa/pydocstyle
# rev: '6.3.0'
# hooks:
# - id: pydocstyle
# args: ['.', '--ignore=D100,D203,D405']
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

## 0.0.36-7 Release: July 9, 2023
- Switched most under the hood dataframe operations to use the python `polars` library and many functions now have a parameter `return_as_pandas` which defaults to `False` but can be set to `True` to return a pandas dataframe instead of a polars dataframe. This is a **breaking change.**
- Added `**kwargs` which pass arguments to the `dl_utils.download()` function, including `headers`, `proxy`, `timeout` (default 30s), `num_retries` (default = 15), `logger` (default = None)
- Function `espn_cfb_game_rosters()` added.
- Function `espn_nba_game_rosters()` added.
- Function `espn_nfl_game_rosters()` added.
- Function `espn_nhl_game_rosters()` added.
- Function `espn_wbb_game_rosters()` added.
- Function `espn_wnba_game_rosters()` added.
- Function `load_cfb_betting_lines()` added (only 2006 through 2019).

## 0.0.34-35 Release: May 7-9, 2023
- Reconfigured some imports
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ recursive-include *.model
recursive-include bin *.py *.cmd *.zip
recursive-include docs *.py *.rst *.css Makefile
recursive-include features *.feature *.py
recursive-include paver_ext *.py
recursive-include paver_ext *.py
Binary file modified Sphinx-docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/sportsdataverse.cfb.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/sportsdataverse.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/sportsdataverse.mbb.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/sportsdataverse.mlb.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/sportsdataverse.nba.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/sportsdataverse.nfl.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/sportsdataverse.nhl.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/sportsdataverse.wbb.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/sportsdataverse.wnba.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/tests.cfb.doctree
Binary file not shown.
Binary file modified Sphinx-docs/_build/doctrees/tests.mbb.doctree
Binary file not shown.
52 changes: 20 additions & 32 deletions Sphinx-docs/_build/markdown/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ contain the root `toctree` directive. -->
* Submodules


* sportsdataverse.cfb.cfb_game_rosters module


* sportsdataverse.cfb.cfb_loaders module


Expand Down Expand Up @@ -64,43 +67,13 @@ contain the root `toctree` directive. -->
* Module contents


* sportsdataverse.mlb package
* sportsdataverse.nba package


* Submodules


* sportsdataverse.mlb.mlb_loaders module


* sportsdataverse.mlb.mlbam_games module


* sportsdataverse.mlb.mlbam_players module


* sportsdataverse.mlb.mlbam_reports module


* sportsdataverse.mlb.mlbam_stats module


* sportsdataverse.mlb.mlbam_teams module


* sportsdataverse.mlb.retrosheet module


* sportsdataverse.mlb.retrosplits module


* Module contents


* sportsdataverse.nba package


* Submodules
* sportsdataverse.nba.nba_game_rosters module


* sportsdataverse.nba.nba_loaders module
Expand All @@ -127,6 +100,9 @@ contain the root `toctree` directive. -->
* sportsdataverse.nfl.model_vars module


* sportsdataverse.nfl.nfl_game_rosters module


* sportsdataverse.nfl.nfl_games module


Expand Down Expand Up @@ -154,6 +130,9 @@ contain the root `toctree` directive. -->
* sportsdataverse.nhl.nhl_api module


* sportsdataverse.nhl.nhl_game_rosters module


* sportsdataverse.nhl.nhl_loaders module


Expand All @@ -175,6 +154,9 @@ contain the root `toctree` directive. -->
* Submodules


* sportsdataverse.wbb.wbb_game_rosters module


* sportsdataverse.wbb.wbb_loaders module


Expand All @@ -196,6 +178,9 @@ contain the root `toctree` directive. -->
* Submodules


* sportsdataverse.wnba.wnba_game_rosters module


* sportsdataverse.wnba.wnba_loaders module


Expand All @@ -217,6 +202,9 @@ contain the root `toctree` directive. -->
* sportsdataverse.config module


* sportsdataverse.decorators module


* sportsdataverse.dl_utils module


Expand Down
52 changes: 20 additions & 32 deletions Sphinx-docs/_build/markdown/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
* Submodules


* sportsdataverse.cfb.cfb_game_rosters module


* sportsdataverse.cfb.cfb_loaders module


Expand Down Expand Up @@ -55,43 +58,13 @@
* Module contents


* sportsdataverse.mlb package
* sportsdataverse.nba package


* Submodules


* sportsdataverse.mlb.mlb_loaders module


* sportsdataverse.mlb.mlbam_games module


* sportsdataverse.mlb.mlbam_players module


* sportsdataverse.mlb.mlbam_reports module


* sportsdataverse.mlb.mlbam_stats module


* sportsdataverse.mlb.mlbam_teams module


* sportsdataverse.mlb.retrosheet module


* sportsdataverse.mlb.retrosplits module


* Module contents


* sportsdataverse.nba package


* Submodules
* sportsdataverse.nba.nba_game_rosters module


* sportsdataverse.nba.nba_loaders module
Expand All @@ -118,6 +91,9 @@
* sportsdataverse.nfl.model_vars module


* sportsdataverse.nfl.nfl_game_rosters module


* sportsdataverse.nfl.nfl_games module


Expand Down Expand Up @@ -145,6 +121,9 @@
* sportsdataverse.nhl.nhl_api module


* sportsdataverse.nhl.nhl_game_rosters module


* sportsdataverse.nhl.nhl_loaders module


Expand All @@ -166,6 +145,9 @@
* Submodules


* sportsdataverse.wbb.wbb_game_rosters module


* sportsdataverse.wbb.wbb_loaders module


Expand All @@ -187,6 +169,9 @@
* Submodules


* sportsdataverse.wnba.wnba_game_rosters module


* sportsdataverse.wnba.wnba_loaders module


Expand All @@ -208,6 +193,9 @@
* sportsdataverse.config module


* sportsdataverse.decorators module


* sportsdataverse.dl_utils module


Expand Down
Loading

1 comment on commit a5ed32c

@vercel
Copy link

@vercel vercel bot commented on a5ed32c Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.