ERRATUM: make 02.06 example work on Python 2

package-updates
Jake VanderPlas 2017-04-21 14:22:47 -07:00
parent f2c4a8af3f
commit 4464f08f99
1 changed files with 1 additions and 1 deletions

View File

@ -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"
]
},