Skip to content

Commit 4464f08

Browse files
committed
ERRATUM: make 02.06 example work on Python 2
1 parent f2c4a8a commit 4464f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/02.06-Boolean-Arrays-and-Masks.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"\n",
7070
"# use pandas to extract rainfall inches as a NumPy array\n",
7171
"rainfall = pd.read_csv('data/Seattle2014.csv')['PRCP'].values\n",
72-
"inches = rainfall / 254 # 1/10mm -> inches\n",
72+
"inches = rainfall / 254.0 # 1/10mm -> inches\n",
7373
"inches.shape"
7474
]
7575
},

0 commit comments

Comments
 (0)