Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BurntSushi/nflcmd
/ functions
Functions
45 in github.com/BurntSushi/nflcmd
⨍
Functions
45
◇
Types & classes
2
↓ 8 callers
Function
fgs_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 callers
Function
ratio
Returns the ratio of integers `num` and `den`.
nflcmd/__init__.py:364
↓ 3 callers
Function
percent
Returns the percentage of integers `num` and `den`.
nflcmd/__init__.py:354
↓ 2 callers
Function
eprint
(*args, **kwargs)
nflcmd/cmds/stats.py:18
↓ 1 callers
Function
eprint
(*args, **kwargs)
nflcmd/cmds/rank.py:14
↓ 1 callers
Function
game_stats
Returns aggregate statistics for a particular `nfldb.Player` in a single `nfldb.Game`.
nflcmd/__init__.py:326
↓ 1 callers
Function
player_team_in_game
Returns the team that the `nfldb.Player` belonged to in a particular `nfldb.Game`.
nflcmd/__init__.py:407
↓ 1 callers
Function
show_game_table
(db, player, year, stype, week_range=None, pos=None)
nflcmd/cmds/stats.py:23
↓ 1 callers
Function
show_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
Function
arg_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
Method
fg_0_29
(self)
nflcmd/__init__.py:201
Method
fg_0_29
(self)
nflcmd/__init__.py:284
Method
fg_30_39
(self)
nflcmd/__init__.py:206
Method
fg_30_39
(self)
nflcmd/__init__.py:289
Method
fg_40_49
(self)
nflcmd/__init__.py:211
Method
fg_40_49
(self)
nflcmd/__init__.py:294
Method
fg_50
(self)
nflcmd/__init__.py:216
Method
fg_50
(self)
nflcmd/__init__.py:299
Function
fg_made
Returns `True` if and only if `p` corresponds to a made field goal.
nflcmd/__init__.py:374
Method
fgs
(self)
nflcmd/__init__.py:192
Method
fgs
(self)
nflcmd/__init__.py:263
Method
game_count
(self)
nflcmd/__init__.py:304
Method
game_date
(self)
nflcmd/__init__.py:227
Function
header_row
Returns a list of strings corresponding to the header row of a particular `spec`.
nflcmd/__init__.py:438
Method
make
Create a new `nflcmd.Game` object from `nfldb.Player` and `nfldb.Game` objects.
nflcmd/__init__.py:175
Method
name
(self)
nflcmd/__init__.py:276
Method
opp
(self)
nflcmd/__init__.py:233
Method
outcome
(self)
nflcmd/__init__.py:221
Method
passing_300
(self)
nflcmd/__init__.py:280
Method
passing_yds_game
(self)
nflcmd/__init__.py:272
Function
pred
(p)
nflcmd/__init__.py:386
Function
pstat_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
Function
query_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
Function
run
Runs the `nflrank` command.
nflcmd/cmds/rank.py:19
Function
run
Runs the `nflstats` command.
nflcmd/cmds/stats.py:73
Function
search
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
Function
table
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
Method
team
(self)
nflcmd/__init__.py:308
Method
teams
(self)
nflcmd/__init__.py:312
Function
to_games
(agg)
nflcmd/cmds/rank.py:62
Function
wrapper
(name, enc=ascii)
setup.py:13