While I’m saving .npy file , I’m getting error that it is not UTF-8 encoded. How to fix this Error ?
However on loading the same numpy file in jupyter notebook, It displays the content.
While I’m saving .npy file , I’m getting error that it is not UTF-8 encoded. How to fix this Error ?
However on loading the same numpy file in jupyter notebook, It displays the content.
hey @gautam75 ,
I dont know the reason behind it , it may be some problem in jupyter .
try like this
with open('test.npy', 'wb') as f:
np.save(f, data)
I hope this helps.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.