Public
Edited
Oct 30, 2024
1 star
Insert cell
Insert cell
competit = FileAttachment("competition.xlsx").xlsx()
Insert cell
comp = competit.sheet(0, {headers: true})
Insert cell
comp
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
zd1 = comp.map(
function (d) {
return {N: Number(d['#']),
pol: d['Пол'],
age: d['Имя'],
jump: Number(d['Прыжок в длину с места, см ']),
count: Number(1)}
})
Insert cell
Insert cell
zd2 = comp.map( function (d) {
return {
Фамилия : d['Фамилия'],
Имя : d['Имя'],
Пол : d['Пол'],
Год : d["Год рождения"],
Бег1000 : d["Бег 1000 метров, мин. и сек."],
Бег30 : d["Бег 30 метров, сек."],
Прыжок : d["Прыжок в длину с места, см "],
}})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Зна
Insert cell
diskD-1.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Pack(cd, {
path: (d) => d.dir_file.replaceAll("\\", "\/"),
label: (d) => d.dir_file.split("\\").pop()+(d.size!=null?"("+String(d.size)+")":""),
value: (d) => d?.size,
title: (d, n) => [n.id, n.value.toLocaleString()].join("\n"),
width,
height: 1000
})
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