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

Support Symbol column parser #118

Open
yakir12 opened this issue Feb 21, 2019 · 2 comments
Open

Support Symbol column parser #118

yakir12 opened this issue Feb 21, 2019 · 2 comments

Comments

@yakir12
Copy link

yakir12 commented Feb 21, 2019

This is from using JuliaDB:

using DelimitedFiles, JuliaDB
x = [[:x, :a, :b, :c] [:y, 1, 2, 3]]
writedlm("tmp.csv", x)
t = loadtable("tmp.csv", colparsers = [Symbol, Int], delim='\t') # ERROR: MethodError: no method matching 
fromtype(::Type{Symbol})
@davidanthoff
Copy link
Member

I assume the only real problem here is to support Symbol, the float case should work, right? In particular, if you said colparsers = [String, Float64], everything should work?

@davidanthoff davidanthoff changed the title parse symbol and/or float Support Symbol column parser Mar 18, 2019
@yakir12
Copy link
Author

yakir12 commented Mar 18, 2019

Yes, you are correct. I realize my specific example was a bit misleading (what with the Int and Float64), so I made it clearer (and corrected a mistake with the delimiter).

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

No branches or pull requests

2 participants