Skip to content

Let DataFrame automatically download the CSV #130

Open

Description

@hernanmd

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'

Activity

  1. Ducasse commented on May 22, 2020

    @Ducasse

    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

  2. olekscode commented on Jul 26, 2021

    @olekscode
    Member

    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'.
  3. added this to the v3.0 milestone on Jul 26, 2021
  4. hernanmd commented on Feb 15, 2023

    @hernanmd
    CollaboratorAuthor

    Cool, thanks!

  5. jecisc commented on Feb 15, 2023

    @jecisc
    Member

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

  6. hernanmd commented on Feb 16, 2023

    @hernanmd
    CollaboratorAuthor

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions