Published
Edited
May 16, 2021
22 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
from random import random

random()
Insert cell
Insert cell
list = [1,2,3]

[num*2 for num in list]
Insert cell
Insert cell
from js import fetch
from io import StringIO
import pandas as pd

url = "https://raw.githubusercontent.com/openelections/openelections-data-pa/master/2016/20161108__pa__general__precinct.csv"

data = StringIO(await (await fetch(url)).text())

results = pd.read_csv(data)

results.head(5).to_string()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more