下载课件后,根据视频练习。
>>> df = pd.read_csv("/Users/chentianwei/自我练习/python练习/NBAPlayers.txt", sep=‘\t‘)
d.head()
>>> df.head(); Player height weight ... born birth_city birth_state 0 Curly Armstrong 180.0 77.0 ... 1918.0 NaN NaN 1 Cliff Barker 188.0 83.0 ... 1921.0 Yorktown Indiana 2 Leo Barnhorst 193.0 86.0 ... 1924.0 NaN NaN 3 Ed Bartels 196.0 88.0 ... 1925.0 NaN NaN 4 Ralph Beard 178.0 79.0 ... 1927.0 Hardinsburg Kentucky
原文:https://www.cnblogs.com/chentianwei/p/12107999.html