ERRATUM: make 02.06 example work on Python 2
parent
f2c4a8af3f
commit
4464f08f99
|
@ -69,7 +69,7 @@
|
|||
"\n",
|
||||
"# use pandas to extract rainfall inches as a NumPy array\n",
|
||||
"rainfall = pd.read_csv('data/Seattle2014.csv')['PRCP'].values\n",
|
||||
"inches = rainfall / 254 # 1/10mm -> inches\n",
|
||||
"inches = rainfall / 254.0 # 1/10mm -> inches\n",
|
||||
"inches.shape"
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue