folder.get_download_stream I/O operation on closed file
![akmalh_09](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar17.png)
akmalh_09
Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 4 ✭✭✭
Hi experts,
Dataiku prompts this error
ValueError: I/O operation on closed file.
when I tried to execute the script below:
with folder.get_download_stream(path_csv) as f:
data = pd.read_csv(f, encoding='latin-1')
The reason I put that encoding is due to the utf-8 error if encoding is not specified (
'utf-8' codec can't decode byte 0xe1 in position 16: invalid continuation byte
).
Any idea how I can solve this?
Operating system used: Windows 10
Tagged:
Answers
-
Hi,
Try encoding= 'ISO-8859-1'
Best,
Pat
-
I have the same issue
-
I have the same problem and it doesn't work :c