tablecloth icon indicating copy to clipboard operation
tablecloth copied to clipboard

dataset creation should allow to read input stream

Open behrica opened this issue 1 year ago • 1 comments

as ds/->dataset does so

behrica avatar Feb 11 '24 18:02 behrica

Hmmm... it should now. What's the error?

genmeblog avatar Feb 11 '24 19:02 genmeblog

indeed, it does work:

(api/dataset (io/input-stream "https://raw.githubusercontent.com/scicloj/tablecloth/refs/heads/master/data/family.csv")
             {:file-type :csv}
             )

;;=> _unnamed [5 5]:
;;   
;;   | family | dob_child1 | dob_child2 | gender_child1 | gender_child2 |
;;   |-------:|------------|------------|--------------:|--------------:|
;;   |      1 | 1998-11-26 | 2000-01-29 |             1 |             2 |
;;   |      2 | 1996-06-22 |            |             2 |               |
;;   |      3 | 2002-07-11 | 2004-04-05 |             2 |             2 |
;;   |      4 | 2004-10-10 | 2009-08-27 |             1 |             1 |
;;   |      5 | 2000-12-05 | 2005-02-28 |             2 |             1 |
;;   

behrica avatar Jan 14 '25 21:01 behrica