Published
Edited
Dec 31, 2018
2 forks
40 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
z.print([
{
minReturn: z.min(dailyReturns).toFixed(5),
maxReturn: z.max(dailyReturns).toFixed(5),
meanDailyReturn: z.mean(dailyReturns).toFixed(5),
medianDailyReturn: z.median(dailyReturns).toFixed(5),
dailyVolatility: z.std(dailyReturns).toFixed(5)
}
])
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dataGrouped = z.groupBy(x=>x.Day, dataDays)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dataPiped = z.pipe(
[
z.parseNums(['Open','High','Low','Close', 'Adj Close', 'Volume']),
z.getCol('Close'),
z.pctChange(),
z.mean()
]
)(data)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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