Comments (5)
Using DataDeps with this should be trivial.
something like (not tested so maybe has typos)
using DataDeps
function __init__()
register(DataDep("Queryverse Tests",
"Testing data for queryverse",
"https://raw.githubusercontent.com/davidanthoff/CSVFiles.jl/master/test/data.csv"
))
end
df = load(datadep"Queryverse Tests/data.csv") |> DataFrame
In fact,
one of the examples on my blog
is using DataDeps with ExcelFiles.jl which is part of queryverse right?
from queryverse.jl.
I guess I am missing why this wants to actually be part of queryverse, or FileIO.jl
Queryverses in built functionality to work directly on URL is just a convenience for when it is convenient (small data, or single use scripts).
Beyond that the user can just use other packages for external cached fetching,
and such packages are going to address a wider range of surrounding issues than trying to capture this functionality as an extension to the existing convenience functionality.
To be clear,
Is it just a docs thing?
to improve discoverability across the Julia ecosystem?
from queryverse.jl.
Yes I think for DataDeps a doc effort is required into Queryverse to give it some highlight.
from queryverse.jl.
But I think some parameters of DataDep
(such as Message
) should be optional
from queryverse.jl.
With RemoteFiles.jl, it can be achieved using
using Queryverse
using RemoteFiles
data = RemoteFile("https://raw.githubusercontent.com/davidanthoff/CSVFiles.jl/master/test/data.csv")
download(data)
df = load(path(data)) |> DataFrame
but maybe a better API should be defined.
julia> load(RemoteFile("https://raw.githubusercontent.com/davidanthoff/CSVFiles.jl/master/test/data.csv")) |> DataFrame
ERROR:
MethodError: no method matching load(::RemoteFiles.RemoteFile)
Closest candidates are:
load(::Union{AbstractString, IO}, ::Any...; options...) at /Users/femto/.julia/v0.6/FileIO/src/loadsave.jl:113
load(::FileIO.Formatted{F}, ::Any...; options...) where F at /Users/femto/.julia/v0.6/FileIO/src/loadsave.jl:167
maybe load
function should be defined
see helgee/RemoteFiles.jl#3
from queryverse.jl.
Related Issues (20)
- Other plotting packages HOT 3
- Queryverse fails to compile on Julia 1.0.0 HOT 4
- loading small data takes a long time. HOT 1
- JuliaPro Failed to Precompile HOT 6
- Problem pre compiling on mac Mojave due to Cairo (I think) HOT 2
- Should the readme link to the website rather than to the unfinished book? HOT 1
- @groupby and @map(_.key) issue HOT 1
- Atom with Julia 1.2: Pkg.add("Queryverse") not working HOT 2
- Error after "using Queryverse" HOT 1
- Queryverse isn't currently usable. HOT 3
- Query v1.0 not being compatible with Queryverse v0.6.1 on Project.toml HOT 1
- Does not load on Julia 1.5.1
- Helps to reorder packages, saves almost two sec. HOT 2
- Queryverse is using an old version of Parquet.jl
- Cannot `add Queryverse` on new environment HOT 1
- Question: How to @group_by multiple columns? HOT 1
- TagBot trigger issue HOT 1
- Could not write `.dta` file HOT 2
- loading package crashes whole Julia instance HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from queryverse.jl.