Public
Edited
Feb 28, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fails = data //(await FileAttachment("bfb-data@1.csv").csv({array: true}))
//.slice(1, -2)
.map((d) => ({
"Bank Name": d["Bank Name, City, State"].split(", ")[0],
"City, State": d["Bank Name, City, State"].split(", ").slice(1).join(", "),
Date: parseDate(d["Closing Date"]),
Assets: parseAssets(d["Approx. Asset (Millions)"]),
Acquirer: d["Acquirer & Transaction"]
}))
Insert cell
gfc2 = fails.filter((d) => d["Bank Name"] == "Silicon Valley Bank")
Insert cell
gfc = fails.filter((d) => d["Bank Name"] == "IndyMac Bank")
Insert cell
fails
Insert cell
await FileAttachment("bfb-data@1.csv").csv({ array: true })
Insert cell
parseDate = d3.utcParse("%d-%b-%y")
Insert cell
parseAssets = (x) => parseFloat(x.replace(/[^\d.]/g, ""))
Insert cell
data[data.length - 2]
Insert cell
data = fdic.data
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