I am just getting started with numpy. So, just to play around I downloaded FIFA 18 Complete Player Dataset. Then, I tried to run a simple code :
import numpy as np
np_fifa = np.genfromtxt('Datasets/FIFA2018.csv', delimiter=',')
print(np_fifa)
But it immediately shows this error :
Traceback (most recent call last):
File "C:\MyFiles\Programs\Python\PlayGround.py", line 2, in
np_fifa = np.genfromtxt('Datasets/FIFA2018.csv', delimiter=',')
File "C:\Users\Vaibhav Acharya\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numpy\lib\npyio.py", line 1951, in genfromtxt
for (i, line) in enumerate(itertools.chain([first_line, ], fhd)):
File "C:\Users\Vaibhav Acharya\AppData\Local\Programs\Python\Python36-32\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 2250: character maps to undefined