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

Select which::any #266

Open
dfujim opened this issue Dec 14, 2019 · 0 comments
Open

Select which::any #266

dfujim opened this issue Dec 14, 2019 · 0 comments

Comments

@dfujim
Copy link

dfujim commented Dec 14, 2019

Hi, I often want to read data from a CSV where my columns denote some floating point number. For example, I measure a set of time series', each corresponding to a different numerical setting. My CSV looks similar to:

t,1.2,1.3
1,2,3
4,5,6

When I load this with JuliaDB, for example, I need to select the columns as symbols, such as in the following example

using JuliaDB
db = loadtable("demo.csv");
select(db,Symbol(1.2))

I can, however, extend the definition in the following way which makes my life easier:

import IndexedTables.select
select(t::IndexedTable,which::Any) = select(t,Symbol(which))

Is there a good reason not to do this? If not, can this definition be added? Thanks!

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

1 participant