Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
args: ["--maxkb=500"]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
rev: 26.1.0
hooks:
- id: black-jupyter

Expand All @@ -23,6 +23,6 @@ repos:
args: ["--ignore-words-list=gis,timeseries", "--skip=*.json,*.csv"]

- repo: https://github.com/kynan/nbstripout
rev: 0.8.2
rev: 0.9.0
hooks:
- id: nbstripout
18 changes: 6 additions & 12 deletions book/geospatial/duckdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,10 @@
"metadata": {},
"outputs": [],
"source": [
"con.sql(\n",
" \"\"\"\n",
"con.sql(\"\"\"\n",
" CREATE TABLE IF NOT EXISTS cities2 AS \n",
" SELECT * FROM ST_Read('cities.shp')\n",
" \"\"\"\n",
")"
" \"\"\")"
]
},
{
Expand Down Expand Up @@ -411,13 +409,11 @@
"metadata": {},
"outputs": [],
"source": [
"con.sql(\n",
" \"\"\"\n",
"con.sql(\"\"\"\n",
"CREATE TABLE IF NOT EXISTS cities3 AS\n",
"SELECT * EXCLUDE geometry, ST_GeomFromWKB(geometry) \n",
"AS geometry FROM 'cities.parquet'\n",
"\"\"\"\n",
")"
"\"\"\")"
]
},
{
Expand All @@ -435,13 +431,11 @@
"metadata": {},
"outputs": [],
"source": [
"con.sql(\n",
" \"\"\"\n",
"con.sql(\"\"\"\n",
"CREATE TABLE IF NOT EXISTS country AS\n",
"SELECT * EXCLUDE geometry, ST_GeomFromWKB(geometry) FROM\n",
" 's3://us-west-2.opendata.source.coop/google-research-open-buildings/v2/geoparquet-admin1/country=SSD/*.parquet'\n",
"\"\"\"\n",
")"
"\"\"\")"
]
},
{
Expand Down
1 change: 0 additions & 1 deletion book/geospatial/maplibre.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2816,7 +2816,6 @@
"source": [
"import numpy as np\n",
"\n",
"\n",
"# Generate the icon data\n",
"width = 64 # The image will be 64 pixels square\n",
"height = 64\n",
Expand Down