DataFrame icon indicating copy to clipboard operation
DataFrame copied to clipboard

Let DataFrame automatically download the CSV

Open hernanmd opened this issue 5 years ago • 5 comments

Currently DataFrame only expects a FileReference as parameter to create an instance:

DataFrame readFromCsv: '/dir1/dir2/myfile.csv' asFileReference

It could be a nice time saver to let the DataFrame actually "resolve" the parameter and download a CSV in a URL String transparently, for example:

DataFrame readFromCsv: 'http://path/to/url/myfile.csv'

hernanmd avatar May 22 '20 06:05 hernanmd

I would prefer to have another method because else it means suddenly data frame is linked with Zinc. Having a stream based API however could be nice to have

DataFrame readFromCsvOn: asStream

Ducasse avatar May 22 '20 09:05 Ducasse

We can have something like this:

DataFrame >> readFromCsv: aFileReference.
DataFrame >> readFromCsvByUrl: aString.

df readFromCsv: '/dir1/dir2/myfile.csv' asFileReference.
df readFromCsvByUrl: 'http://path/to/url/myfile.csv'.

olekscode avatar Jul 26 '21 12:07 olekscode

Cool, thanks!

hernanmd avatar Feb 15 '23 20:02 hernanmd

I don’t think this is yet implemented. Should this really be closed?

jecisc avatar Feb 15 '23 20:02 jecisc

You're right, I misread it "readFromCsvByUrl" and thought it was already implemented

hernanmd avatar Feb 16 '23 00:02 hernanmd