def test_get_shot_chart(self):
     d = get_shot_chart('2019-12-28', 'TOR', 'BOS')
     self.assertListEqual(list(d.keys()), ['TOR', 'BOS'])
     self.assertListEqual(list(d['TOR'].columns), [
         'x', 'y', 'quarter', 'time_remaining', 'player', 'type', 'value',
         'distance'
     ])
 def test_get_shot_chart(self):
     d = get_shot_chart('2019-12-28', 'TOR', 'BOS')
     self.assertListEqual(list(d.keys()), ['TOR', 'BOS'])
     self.assertListEqual(list(d['TOR'].columns), [
         'x', 'y', 'QUARTER', 'TIME_REMAINING', 'PLAYER', 'MAKE_MISS',
         'VALUE', 'DISTANCE'
     ])
Beispiel #3
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 30 14:43:11 2020

@author: Nillan
"""

from basketball_reference_scraper.shot_charts import get_shot_chart
from basketball_reference_scraper.pbp import get_pbp


d = get_shot_chart('2019-12-28', 'TOR', 'BOS')

pbp = get_pbp('2019-12-28', 'TOR', 'BOS')

# when joel embiid is making more threes, how does bill simmons do
    #by qtr?
Beispiel #4
0
s = get_schedule(2018, playoffs=False)
print(s)

s = get_standings(date='2020-01-06')
print(s)

from basketball_reference_scraper.box_scores import get_box_scores

s = get_box_scores('2020-01-13',
                   'CHI',
                   'BOS',
                   period='GAME',
                   stat_type='BASIC')
print(s)

from basketball_reference_scraper.pbp import get_pbp

s = get_pbp('2020-01-13', 'CHI', 'BOS')
print(s)

from basketball_reference_scraper.shot_charts import get_shot_chart

s = get_shot_chart('2020-01-13', 'CHI', 'BOS')
print(s)

from basketball_reference_scraper.injury_report import get_injury_report

s = get_injury_report()
print(s)