Public
Edited
Dec 5, 2022
Insert cell
Insert cell
Airlines.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
daysOfTheWeek = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday']
Insert cell
airlinesHoliday = airlines.map(item => {
const isHoliday = item.DayOfWeek == 6 || item.dayOfWeek == 7;
item['holiday'] = isHoliday ? 1 : 0;
return item
})
Insert cell
airlinesHoliday
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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