# Final Project - Data Preprocessing
###### tags: `深度學習介紹`
> **粗體** => 可能可以做為predict的feature使用
> ==螢光筆== => 預測的目標
### Tracking Data (Week1.csv~week8.csv)
- gameId: Game identifier, unique (numeric)
- playId: Play identifier, not unique across games (numeric)
- nflId: Player identification number, unique across players. When value is NA, row corresponds to ball. (numeric)
~~- frameId: Frame identifier for each play, starting at 1 (numeric)~~
~~- **team**: Team abbrevation of corresponding player (text)~~
~~- **rival**: 對手隊伍(要自己加)(可不放 有重複)~~
~~- playDirection: Direction that the offense is moving (left or right)~~
~~- dis: 路徑長~~
- **s_avg**: s的平均
~~- **s_max**: s的最大值~~
~~- a_max: a的最大值(相撞加速度可能很大?)~~
~~- event: Tagged play details, including moment of ball snap, pass release, pass catch, tackle, etc (text)~~
### Play Data
- gameId: Game identifier, unique (numeric)
- playId: Play identifier, not unique across games (numeric)
- ~~playDescription: Description of play (text)~~
- quarter: Game quarter (numeric)
- down: Down (numeric)
- yardsToGo: Distance needed for a first down (numeric)
- **possessionTeam**: Team abbr of team on offense with possession of ball (text)
- **defensiveTeam**: Team abbr of team on defense (text)
- yardlineSide: 3-letter team code corresponding to line-of-scrimmage (text)
- yardlineNumber: Yard line at line-of-scrimmage (numeric)
- gameClock: Time on clock of play (MM:SS)
- preSnapHomeScore: Home score prior to the play (numeric)
- preSnapVisitorScore: Visiting team score prior to the play (numeric)
- passResult: Dropback outcome of the play (C: Complete pass, I: Incomplete pass, S: Quarterback sack, IN: Intercepted pass, R: Scramble, text)
- penaltyYards: yards gained by offense by penalty (numeric)
- prePenaltyPlayResult: Net yards gained by the offense, before penalty yardage (numeric)
- playResult: Net yards gained by the offense, including penalty yardage (numeric)
- foulName[i]: Name of the i-th penalty committed during the play. i ranges between 1 and 3 (text)
- foulNFLId[i]: nflId of the player who comitted the i-th penalty during the play. i ranges between 1 and 3 (numeric)
- absoluteYardlineNumber: Distance from end zone for possession team (numeric)
- **offenseFormation**: Formation used by possession team (text)
- **personnelO**: Personnel used by offensive team (text)
- defendersInTheBox: Number of defenders in close proximity to line-of-scrimmage (numeric)
- **personnelD**: Personnel used by defensive team (text)
- dropbackType: Dropback categorization of quarterback (text)
- pff_playAction: indicator for whether offense executes play action fake on the play. Variable provided by PFF (binary)
- **pff_passCoverage**: Coverage scheme of defense. Variable provided by PFF (text) Possible values:
- Cover-0: A Man to Man coverage across the board with no deep defenders. This coverage is typically accompanied with a blitz
- Cover-1: When a defense plays any form of Man defense across the board with a Defensive Player as a Single High Man concept
- Cover-2: A two deep safety concept where any zone principle is applied
- 2-Man: A two deep safety concept where a man principle is applied
- Cover-3: Any 3 Deep, 4 Under concept
- Quarters: A Quarters concept on both halves of the field. In general it will be a 4 Deep, 3 Under concept where the corners are on #1, safeties on #2, and backside safety rotation dependent on formation
- Cover-6: A Quarters Concept on half the field and a 2 Deep concept on the other half
- Bracket: Recorded in the field and up to the 12 yard line in the red zone – when two offensive players have an in and out bracket by two defenders
- Goal Line: Calls where a Goal Line defense is used.
- Red Zone: Calls that are typically specific to the Red Zone and do not occur in the field often
- Prevent: Special end of half or end of game situations where a Prevent defense is utilized
- Miscellaneous: Coverage concepts that we feel do not comfortably fit into any of our coverage categories
- **pff_passCoverageType**: Whether defense's coverage type was man, zone or other. Variable provided by PFF (text)