In [ ]:
import numpy as np


---------------------------------------------------------------------------
Error                                     Traceback (most recent call last)
<ipython-input-5-32f5b515dc36> in <module>()
      2 with open("/Users/yuhongjun/Python/python-training/data/iris.data.csv", "rb") as csvfile:
      3     lines = csv.reader(csvfile)
----> 4     for row in lines:
      5         print('a')

Error: iterator should return strings, not bytes (did you open the file in text mode?)

In [ ]: