Platform
Resources
Pricing
Sign in
Get started
Sam Albers
Workspace
Fork
Public
By
Sam Albers
Edited
Apr 5, 2024
Fork of
Search + Table
1
Insert cell
Insert cell
data
=
FileAttachment
(
"baby_names.csv"
)
.
csv
(
{
typed
:
true
}
)
Insert cell
Insert cell
viewof
tbl
=
Inputs
.
table
(
data
,
{
format
:
{
Year
:
d3
.
format
(
"d"
)
// format as "1960" rather than "1,960"
}
}
)
Insert cell
genderVal
=
tbl
.
map
(
item
=>
item
.
Gender
)
;
Insert cell
uniqueYears
=
[
...
new
Set
(
genderVal
)
]
Insert cell
Insert cell
import
{
aq
,
op
}
from
'@uwdata/arquero'
Insert cell
distinctTable
=
aq
.
from
(
data
)
.
select
(
'Name'
,
'Gender'
)
.
dedupe
(
)
Insert cell
Inputs
.
bind
(
Inputs
.
table
(
distinctTable
,
{
columns
:
[
"Gender"
]
}
)
,
Inputs
.
table
(
distinctTable
,
{
columns
:
[
"Name"
]
}
)
)
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.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
tbl
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
genderVal
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
uniqueYears
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
distinctTable
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML