NHL Game Data

First step is to clean the data.

game

Create MySQL database for NHL Game Data

Create database

Next step is to create tables in MySQL database

game Table MySQL code

Next step is to load the csv file data to MySQL database

cvs import

player_info

player_info MySQL code

team_info

team_info MySQL code

game_goalie_stats

Need to replace NA and NaN with the 0.0 to match with the datatype in Double

Team_id in game_goalie_stats.csv also should be in team_info.csv as per foreign key constraint.

player_id in game_goalie_stats.csv also should be in team_info_format.csv as per foreign key constraint.

Remove duplicate values base on all three columns

game_goalie_stats MySQL code

game_plays

Replace all the NaN values with 0.0

remove duplicate values in primary key

game_plays MySQL code

game_teams_stats

game_teams_stats MySQL code

game_skater_stats

game_skater_stats MySQL code

game_goals

game_goals MySQL code