pythonpace_利用Python进行NBA比赛数据分析

获取数据

# 获取数据文件

!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:综合统计数据

数据项

数据

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值