Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

somedata.csv is encoding badly Array Basics / Reading and Writing Files #70

Open
edutools-service opened this issue Jul 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@edutools-service
Copy link

HINT1, HINT2, CHECK failed to launch.
Traceback (most recent call last):
File "C:\Users\rober\Python Libraries - NumPy\NumPy\Array Basics\Reading and Writing Files\task.py", line 19, in
arr = np.genfromtxt(data,delimiter=',',skip_footer=3 )
File "C:\Users\rober\Python Libraries - NumPy.idea\VirtualEnvironment\lib\site-packages\numpy\lib\npyio.py", line 2009, in genfromtxt
first_line = _decode_line(next(fhd), encoding)
File "C:\Users\rober\AppData\Local\Programs\Python\Python39\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 145: character maps to

@edutools-service edutools-service added the bug Something isn't working label Jul 14, 2023
@DaniilBogdanovJB DaniilBogdanovJB added the duplicate This issue or pull request already exists label Nov 7, 2023
@DaniilBogdanovJB
Copy link

Similar to #67, possibly a duplicate.
Needs some clarifications on how to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants