Created
January 3, 2021 16:53
-
-
Save MemphisMeng/0d33231c74c5d593ca204508ef963bfb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# data preparation | |
plays = pd.read_csv('../input/nfl-big-data-bowl-2021/plays.csv') | |
games = pd.read_csv('../input/nfl-big-data-bowl-2021/games.csv') | |
players = pd.read_csv('../input/nfl-big-data-bowl-2021/players.csv') | |
dataDir = "/kaggle/input/nfl-big-data-bowl-2021/" | |
weeks = pd.DataFrame(columns=['time', 'x', 'y', 's', 'a', 'dis', 'o', 'dir', 'event', 'nflId', | |
'displayName', 'jerseyNumber', 'position', 'frameId', 'team', 'gameId', | |
'playId', 'playDirection', 'route']) | |
for i in range(1,18): | |
weeks = pd.concat([weeks, pd.read_csv(dataDir+"week{}.csv".format(i))], ignore_index=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment