Public
Edited
Sep 3, 2024
Insert cell
Insert cell
## DataGOUV
Insert cell
url_datagouv = 'https://www.data.gouv.fr/fr/datasets/r/c67d4fb4-dc56-491f-83e4-cde858f6cdf5'
Insert cell
df = db.query(`SELECT * FROM read_parquet('${url_datagouv}') LIMIT 5`)
Insert cell
fetch(url_datagouv)
.then(response => {
if (response.ok) console.log("Access granted")
throw new Error('Network response was not ok.')
})
.then(data => console.log(data.contents));
Insert cell
Insert cell
//df_insee_cors = db.query(
// `SELECT * FROM read_parquet('https://api.allorigins.win/get?url=${url}') LIMIT 5`
//)
Insert cell
url = encodeURIComponent("https://www.insee.fr/fr/statistiques/fichier/7766585/v_commune_2024.csv")
Insert cell
//df_insee = db.query(
// "SELECT * FROM read_parquet('https://www.insee.fr/fr/statistiques/fichier/7766585/v_commune_2024.csv') LIMIT 5"
//)
Insert cell
Inputs.table(df_insee_cors)
Insert cell
db = DuckDBClient.of({
})
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