A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/davidanthoff/VegaDatasets.jl below:

queryverse/VegaDatasets.jl: Julia package for loading the standard Vega data sets

This package provides an easy way to load the datasets in vega-datasets from julia.

You can install this package from the julia REPL with the following command:

The package only exports one function that takes the name of a dataset and returns a VegaDataset with that data:

using VegaDatasets

vg = dataset("iris")

VegaDataset implements the iterable tables interface, so it can be passed to any sink that accepts iterable tables.

For example, to convert a dataset into a DataFrame, you can write:

using VegaDatasets, DataFrames

df = DataFrame(dataset("iris"))

You can pipe a VegaDataset directly into a VegaLite.jl plot:

using VegaLite, VegaDatasets

dataset("iris") |> @vlplot(:point, x=:sepalLength, y=:petalWidth)

The following datasets are not tabular in nature:

In those cases an object is returned that can be lowered to JSON, or one can access the .path property for such an object to get a path to the location of the dataset.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4