teams
teams(
league: str | None = None,
) -> polars.dataframe.frame.DataFrame
The bundled team index: one row per (league, team_id), with names, abbreviation, conference and colors.
Arguments
| Name | Type | Description |
|---|---|---|
league | str | None | An SDV league key such as "nfl"; None returns every league. |
Returns
polars.DataFrame — The index columns league, team_id, abbr, name, short_name, location, program, conference_id, conference, color_primary, color_secondary and color_source.
Raises
ValueError: Ifleagueis given and unknown.
Example
import sdvplot
sdvplot.teams("nfl").shape # (32, 12)