MCPcopy Create free account

hub / github.com/BurntSushi/nflcmd / functions

Functions45 in github.com/BurntSushi/nflcmd

↓ 8 callersFunctionfgs_range
Given a list of field goal `nfldb.PlayPlayer` objects, return only the field goals in the range `[start, end]`.
nflcmd/__init__.py:381
↓ 4 callersFunctionratio
Returns the ratio of integers `num` and `den`.
nflcmd/__init__.py:364
↓ 3 callersFunctionpercent
Returns the percentage of integers `num` and `den`.
nflcmd/__init__.py:354
↓ 2 callersFunctioneprint
(*args, **kwargs)
nflcmd/cmds/stats.py:18
↓ 1 callersFunctioneprint
(*args, **kwargs)
nflcmd/cmds/rank.py:14
↓ 1 callersFunctiongame_stats
Returns aggregate statistics for a particular `nfldb.Player` in a single `nfldb.Game`.
nflcmd/__init__.py:326
↓ 1 callersFunctionplayer_team_in_game
Returns the team that the `nfldb.Player` belonged to in a particular `nfldb.Game`.
nflcmd/__init__.py:407
↓ 1 callersFunctionshow_game_table
(db, player, year, stype, week_range=None, pos=None)
nflcmd/cmds/stats.py:23
↓ 1 callersFunctionshow_season_table
(db, player, stype, week_range=None, pos=None)
nflcmd/cmds/stats.py:43
Method__getattr__
(self, k)
nflcmd/__init__.py:240
Method__getattr__
(self, k)
nflcmd/__init__.py:319
Method__init__
(self, db, game, team, pstat)
nflcmd/__init__.py:184
Method__init__
(self, db, year, games, pstat)
nflcmd/__init__.py:255
Functionarg_range
Given a string of the format `[int][-][int]`, return a list of integers in the inclusive range specified. Open intervals are allowed, whi
nflcmd/__init__.py:493
Methodfg_0_29
(self)
nflcmd/__init__.py:201
Methodfg_0_29
(self)
nflcmd/__init__.py:284
Methodfg_30_39
(self)
nflcmd/__init__.py:206
Methodfg_30_39
(self)
nflcmd/__init__.py:289
Methodfg_40_49
(self)
nflcmd/__init__.py:211
Methodfg_40_49
(self)
nflcmd/__init__.py:294
Methodfg_50
(self)
nflcmd/__init__.py:216
Methodfg_50
(self)
nflcmd/__init__.py:299
Functionfg_made
Returns `True` if and only if `p` corresponds to a made field goal.
nflcmd/__init__.py:374
Methodfgs
(self)
nflcmd/__init__.py:192
Methodfgs
(self)
nflcmd/__init__.py:263
Methodgame_count
(self)
nflcmd/__init__.py:304
Methodgame_date
(self)
nflcmd/__init__.py:227
Functionheader_row
Returns a list of strings corresponding to the header row of a particular `spec`.
nflcmd/__init__.py:438
Methodmake
Create a new `nflcmd.Game` object from `nfldb.Player` and `nfldb.Game` objects.
nflcmd/__init__.py:175
Methodname
(self)
nflcmd/__init__.py:276
Methodopp
(self)
nflcmd/__init__.py:233
Methodoutcome
(self)
nflcmd/__init__.py:221
Methodpassing_300
(self)
nflcmd/__init__.py:280
Methodpassing_yds_game
(self)
nflcmd/__init__.py:272
Functionpred
(p)
nflcmd/__init__.py:386
Functionpstat_to_row
Transforms a player statistic to a list of strings corresponding to the given spec. Note that `pstat` should be like a `nfldb.PlayPlayer`
nflcmd/__init__.py:418
Functionquery_games
Returns a `nfldb.Query` corresponding to a list of games matching a particular season, season phase and an optional range of weeks. `play
nflcmd/__init__.py:393
Functionrun
Runs the `nflrank` command.
nflcmd/cmds/rank.py:19
Functionrun
Runs the `nflstats` command.
nflcmd/cmds/stats.py:73
Functionsearch
Provides a thin wrapper over nfldb's player search. Namely, if `name` is one word, then it assumes that it's a first/last name and tries
nflcmd/__init__.py:336
Functiontable
Takes a list of iterables and returns them as a nicely formatted table. All values must be convertible to a str, or else a ValueError will
nflcmd/__init__.py:449
Methodteam
(self)
nflcmd/__init__.py:308
Methodteams
(self)
nflcmd/__init__.py:312
Functionto_games
(agg)
nflcmd/cmds/rank.py:62
Functionwrapper
(name, enc=ascii)
setup.py:13