Closed ericemc3 closed 3 years ago
I’ve ran into this same problem and wished for the same thing. When I’m trying to experiment with an idea, I will often use a dataset from the Tidy Tuesday Project. With Arquero, I’ve just downloaded the file because I’ve not figured out a good way to load it in by URL.
First, it looks like there is a documentation error. This should be better:
aq.fromCSV(await fetch(url).then(r => r.text()))
Second, yes, I understand the desire to load from a URL without additional fuss. However, since (loaded) CSV input and a URL are both strings, I'll need to think about potential patterns for recognizing URLs instead of actual CSV input... or consider alternative options or methods.
what if you add aq.fromUrl(url)
and process other data files that way, not just csv. That way you can load *.json
and other data formats you might support eventually from public data sources and urls.
Thank you very much for your hard work, v3.0.0 is a great new release!
The API doc exposes as an example:
But it does not seem to work. Here are few variants:
Actually i wish i could use simply:
aq.fromCSV(url)
like
d3.csv(url)