Skip to content

add function to show data in browser #9

@behrica

Description

@behrica

I started to use huri and it's idea of a "data-set is sequences of maps" and one of the first things I wanted to add, for the "layz data scientist", is to show a "sequence of maps in a browser".

The code for thjis looks like this:

(defn df-to-browser! [df]
  (data-to-html.core/open-in-browser
   (hiccup.core/html
    (hiccup.table/to-table1d df
                             (zipmap (hc/cols df) (map name (hc/cols df))))))

  )

So it would add depencies to hiccup and friends:

                [data-to-html "0.1.3-SNAPSHOT"]
                 [hiccup-table "0.2.0"]

Let me know, if you think this could fit here, so I do a PR

Something similar could be done using "clojure.inspect" (while I like to html look better)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions