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

ArgumentError: Symbol name may not contain \0 #442

Closed
jo-fleck opened this issue May 23, 2019 · 4 comments
Closed

ArgumentError: Symbol name may not contain \0 #442

jo-fleck opened this issue May 23, 2019 · 4 comments

Comments

@jo-fleck
Copy link

I am trying to read a csv file and get: ArgumentError: Symbol name may not contain \0

The csv file is here. It has 270 columns. Some of them are titled in the following pattern: "fmrYY_0".

Does the "_0" part cause the argument error? If yes, are there any options to read the data without changing the names (by hand)?

Thanks a lot for hints and help!

@quinnj
Copy link
Member

quinnj commented May 23, 2019

CSV.read(file; normalizenames=true)

@jo-fleck
Copy link
Author

Thanks @quinnj - works!

I just read the manual regarding normalizenames. Can you enlighten me: Was the error thrown because of spaces in the column names? Or because _ is an invalid identifier character?

@quinnj
Copy link
Member

quinnj commented May 23, 2019

We use the Base. is_id_char(c) to determine whether a character needs to be replaced for normalizenames; spaces aren't allowed, _ should be fine.

@quinnj quinnj closed this as completed May 23, 2019
@jo-fleck
Copy link
Author

Thanks a lot @quinnj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants