Example notebook for polestar in iPython/jupyter/Colab

To load a panda data frame into polestar, just pass it to the polestar function.


In [1]:
import pandas as pd
df = pd.read_json('data/cars.json')

In [2]:
%load_ext vega.disable_autoscroll


autoscrolling is disabled

In [3]:
%load_ext autoreload
%autoreload 2

In [4]:
from vega import polestar

polestar.explore(df, {
  "encoding": {
    "y": {"type": "Q","name": "Acceleration"},
    "x": {"type": "Q","name": "Horsepower"}
  }
})



In [5]:
from vega import voyager

voyager.explore(df)