Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Team Abbreviations don't match between imports #87

Description

@darkhark

Is there an existing issue for this?

  • I have searched the existing issues

Have you installed the latest development version of the package(s) in question?

  • I have installed the latest development version of the package.

If this is a data issue, have you tried clearing your nflverse cache?

I have cleared my nflverse cache and the issue persists.

What version of the package do you have?

0.3.1

Describe the bug

The weekly stats and schedule stats use different team abbreviations for teams that moved. For example, in 1999, the chargers are SD in the schedule data, but are LAC in the weekly stats data. There may be more (like STL and LA) but I found this while attempting to merge the two datasets and noticed the chargers data was missing in 1999 - 2016.

Reprex

import nfl_data_py as nfl

weekly_df = nfl.import_weekly_data([1999, 2017])
schedule_df = nfl.import_schedules([1999, 2017])

print('Weekly Data')
print(weekly_df[weekly_df['opponent_team'] == 'LAC'][['season', 'opponent_team']])
print('-------------------')
print('Schedule Data')
print(schedule_df[schedule_df['away_team'] == 'LAC'][['season', 'away_team']])

Expected Behavior

I would expect all team abbreviations to be consistent between imports. Ideally, they would all use the team name at the time.

nflverse_sitrep

NA

Screenshots

No response

Additional context

This may be the desired outcome when this was written, but even if it is, it would be useful to have a parameter or something that can convert the team names to either what they were at the time or to the most recent names

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions