获取数据
# 获取数据文件
!wget http://labfile.oss.aliyuncs.com/courses/782/data.zip
# 安装 unzip
!apt-get install unzip
# 解压data压缩包并且删除该压缩包
!unzip data.zip
!rm -r data.zip
引入实验相关模块
import pandas as pd
import csv
数据
Team_Per_Game_Stat 每场比赛的队数统计
Opponent_Per_Game_Stat 每场比赛的对手统计
Miscellaneous_Stat 杂项统计
Team Per Game Stats:每支队伍平均每场比赛的表现统计
数据名
含义
Rk -- Rank
排名
G -- Games
参与的比赛场数(都为 82 场)
MP -- Minutes Played
平均每场比赛进行的时间
FG--Field Goals
投球命中次数
FGA--Field Goal Attempts
投射次数
FG%--Field Goal Percentage
投球命中次数
3P--3-Point Field Goals
三分球命中次数
3PA--3-Point Field Goal Attempts
三分球投射次数
3P%--3-Point Field Goal Percentage
三分球命中率
2P--2-Point Field Goals
二分球命中次数
2PA--2-point Field Goal Attempts
二分球投射次数
2P%--2-Point Field Goal Percentage
二分球命中率
FT--Free Throws
罚球命中次数
FTA--Free Throw Attempts
罚球投射次数
FT%--Free Throw Percentage
罚球命中率
ORB--Offensive Rebounds
进攻篮板球
DRB--Defensive Rebounds
防守篮板球
TRB--Total Rebounds
篮板球总数
AST--Assists
助攻
STL--Steals
抢断
BLK -- Blocks
封盖
TOV -- Turnovers
失误
PF -- Personal Fouls
个犯
PTS -- Points
得分
Opponent Per Game Stats:所遇到的对手平均每场比赛的统计信息,所包含的统计数据与 Team Per Game Stats 中的一致,只是代表的是该球队对应的对手的统计信息
Miscellaneous Stats:综合统计数据
数据项
数据