Trying to convert form csv to npz format
Hi,
I am having issues to save the csv file in the npz format. I am using google colab
npz=np.load('/content/Audiobooks_data.csv', allow_pickle=True)
UnpicklingError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
447 try:
--> 448 return pickle.load(fid, **pickle_kwargs)
449 except Exception as e:
UnpicklingError: unpickling stack underflow
The above exception was the direct cause of the following exception:
OSError Traceback (most recent call last)
1 frames
/usr/local/lib/python3.8/dist-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
448 return pickle.load(fid, **pickle_kwargs)
449 except Exception as e:
--> 450 raise IOError(
451 "Failed to interpret file %s as a pickle" % repr(file)) from e
452
OSError: Failed to interpret file '/content/Audiobooks_data.csv' as a pickle
Can you please help
Thanks,
Rd