Skip to content

Commit 8309b82

Browse files
author
shan11812
committed
comparing with int instead of numpy.int64
1 parent 3da2d91 commit 8309b82

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

04_Apply/Students_Alcohol_Consumption/Exercises_with_solutions.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -952,12 +952,9 @@
952952
"outputs": [],
953953
"source": [
954954
"def times10(x):\n",
955-
" if type(x) is str:\n",
956-
" return x\n",
957-
" elif type(x) is numpy.int64:\n",
955+
" if type(x) is int:\n",
958956
" return 10 * x\n",
959-
" else:\n",
960-
" return"
957+
" return x"
961958
]
962959
},
963960
{

0 commit comments

Comments
 (0)