PySAL
Spatial weights, autocorrelation tests, map classification, inequality measures, and spatial regression from PySAL, callable from SQL
- Connector software
- Free and open source
- Service credentials
- Not needed
- Query Farm hosting
- Available · $10/month organization minimum
Use with an agent
Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.
npx skills add Query-farm/vgi-skills --skill orchard
Copy this request into your coding agent to get started.
Use https://query.farm/products/orchard/connectors/pysal/index.md to help me query PySAL with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.
Compare neighborhood crime with nearby areas
Example output · captured
- Connector release
- v0.2.1
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
WITH c AS (SELECT id, crime FROM pysal.main.columbus()) SELECT w.focal::BIGINT AS id, own.crime AS crime, round(sum(w.weight * nb.crime), 2) AS neighbour_crime, count(*) AS neighbours
FROM pysal.main.weights((SELECT id, geom FROM pysal.main.columbus()), w_type => 'queen', id => 'id') AS w
JOIN c AS own ON own.id = w.focal::BIGINT
JOIN c AS nb ON nb.id = w.neighbor::BIGINT
GROUP BY w.focal, own.crime
ORDER BY neighbour_crime DESC, id
LIMIT 5
| id | crime | neighbour_crime | neighbours |
|---|---|---|---|
| 23 | 38.2979 | 54.91 | 7 |
| 15 | 54.8387 | 52.37 | 8 |
| 28 | 60.7504 | 51.79 | 7 |
| 17 | 43.9625 | 51.18 | 4 |
| 36 | 42.4451 | 50.99 | 6 |
Quick start
Choose where to run PySAL, then follow the steps below.
The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.
1. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
2. Attach the connector
Attach with uvx
Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.
ATTACH 'pysal' AS pysal (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-pysal'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'pysal' AS pysal (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-pysal:0.2.1'
);
3. Run a query
WITH c AS (SELECT id, crime FROM pysal.main.columbus()) SELECT w.focal::BIGINT AS id, own.crime AS crime, round(sum(w.weight * nb.crime), 2) AS neighbour_crime, count(*) AS neighbours
FROM pysal.main.weights((SELECT id, geom FROM pysal.main.columbus()), w_type => 'queen', id => 'id') AS w
JOIN c AS own ON own.id = w.focal::BIGINT
JOIN c AS nb ON nb.id = w.neighbor::BIGINT
GROUP BY w.focal, own.crime
ORDER BY neighbour_crime DESC, id
LIMIT 5
Run the connector on a server you manage. You operate the service and choose who can connect.
1. Deploy the connector on your server
Follow the connector’s deployment instructions. Use its supported HTTP transport, or launch it remotely over SSH. The connection guide explains both options.
2. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach the connector
For an HTTP deployment, replace the example URL with your endpoint. Add the authentication options your deployment requires. For SSH, use the SSH connection instructions.
ATTACH 'pysal' AS pysal
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
WITH c AS (SELECT id, crime FROM pysal.main.columbus()) SELECT w.focal::BIGINT AS id, own.crime AS crime, round(sum(w.weight * nb.crime), 2) AS neighbour_crime, count(*) AS neighbours
FROM pysal.main.weights((SELECT id, geom FROM pysal.main.columbus()), w_type => 'queen', id => 'id') AS w
JOIN c AS own ON own.id = w.focal::BIGINT
JOIN c AS nb ON nb.id = w.neighbor::BIGINT
GROUP BY w.focal, own.crime
ORDER BY neighbour_crime DESC, id
LIMIT 5
Query Farm operates PySAL for your team. Hosting has a $10 monthly minimum per organization; usage counts toward it. From $2.97 per instance-month ($10 monthly minimum).
1. Create your hosted connector
Open the console, choose your organization and deployment size, and add any service credentials there.
2. Install the vgi extension
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach your deployment
Copy the ATTACH statement from your deployment in the console and run it in DuckDB or Haybarn. Use pysal as the catalog alias for the query below.
4. Run a query
WITH c AS (SELECT id, crime FROM pysal.main.columbus()) SELECT w.focal::BIGINT AS id, own.crime AS crime, round(sum(w.weight * nb.crime), 2) AS neighbour_crime, count(*) AS neighbours
FROM pysal.main.weights((SELECT id, geom FROM pysal.main.columbus()), w_type => 'queen', id => 'id') AS w
JOIN c AS own ON own.id = w.focal::BIGINT
JOIN c AS nb ON nb.id = w.neighbor::BIGINT
GROUP BY w.focal, own.crime
ORDER BY neighbour_crime DESC, id
LIMIT 5
Technical details
- Verified connector release
- v0.2.1
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
- Verified on
- December 1, 2026
Pin a version for production
When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.
Attach with uvx
Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.
ATTACH 'pysal' AS pysal (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-pysal'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'pysal' AS pysal (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-pysal:0.2.1'
);
Overview
PySAL spatial statistics for SQL: datasets, weights, autocorrelation, classification, and regression.
This worker exposes the PySAL Python spatial analysis library as DuckDB table functions. Load a bundled example dataset or pass any query with a numeric value and a geometry, and the worker builds spatial weights from the geometries and returns the statistic as rows: global and local spatial autocorrelation, map classification, inequality measures and spatial regression. Permutation p-values depend on the permutation count and seed; all computation is local.
Sources and references
- PySAL: the Python Spatial Analysis Library federation this worker wraps.
- libpysal: spatial weights and the bundled example datasets.
- esda: Moran's I, Geary's C and local (LISA) autocorrelation statistics.
- spreg, mapclassify and inequality: spatial regression, choropleth classification and inequality measures.
Catalog
Everything pysal exposes once attached — read straight from the worker's
released build.
main 28 functions
PySAL spatial datasets, weights, autocorrelation, classification, and regression for SQL
Schema examples (3)
Spatial lag of columbus crime: join the row-standardised queen weights edge list to the dataset and average each neighbourhood's neighbours' crime; the five highest-lag neighbourhoods, with their own crime and neighbour count
WITH c AS (SELECT id, crime FROM pysal.main.columbus()) SELECT w.focal::BIGINT AS id, own.crime AS crime, round(sum(w.weight * nb.crime), 2) AS neighbour_crime, count(*) AS neighbours
FROM pysal.main.weights((SELECT id, geom FROM pysal.main.columbus()), w_type => 'queen', id => 'id') AS w
JOIN c AS own ON own.id = w.focal::BIGINT
JOIN c AS nb ON nb.id = w.neighbor::BIGINT
GROUP BY w.focal, own.crime
ORDER BY neighbour_crime DESC, id
LIMIT 5;
| id | crime | neighbour_crime | neighbours |
|---|---|---|---|
| 23 | 38.2979 | 54.91 | 7 |
| 15 | 54.8387 | 52.37 | 8 |
| 28 | 60.7504 | 51.79 | 7 |
| 17 | 43.9625 | 51.18 | 4 |
| 36 | 42.4451 | 50.99 | 6 |
Profile local Moran crime clusters: join local_moran back to columbus by id and compare average crime, income, and house value per cluster type (high-high clusters are the poorer, lower-value neighbourhoods)
SELECT lm.cluster, count(*) AS neighbourhoods,
round(avg(c.crime), 1) AS avg_crime, round(avg(c.inc), 1) AS avg_income,
round(avg(c.hoval), 1) AS avg_house_value
FROM pysal.main.local_moran((SELECT id, crime AS y, geom FROM pysal.main.columbus()), w_type => 'queen', id => 'id') AS lm
JOIN pysal.main.columbus() AS c USING (id)
GROUP BY lm.cluster
ORDER BY avg_crime DESC;
Average columbus crime per household-income quintile: classify income with quantiles, join the classes back to the dataset by id, and aggregate crime per class
SELECT q.class AS income_quintile,
round(max(q.upper_bound), 2) AS income_upper_bound,
count(*) AS neighbourhoods, round(avg(c.crime), 1) AS avg_crime
FROM pysal.main.quantiles((SELECT id, inc AS y FROM pysal.main.columbus()), value => 'y', k => 5, id => 'id') AS q
JOIN pysal.main.columbus() AS c USING (id)
GROUP BY q.class
ORDER BY income_quintile;
baltim ()
Baltimore house sales prices and hedonic attributes (211 points)
Load the baltim dataset
SELECT * FROM pysal.baltim();
columbus ()
Columbus, OH neighbourhood crime, income and home value (49 polygons)
Load the columbus dataset
SELECT * FROM pysal.columbus();
drop_model (model_name VARCHAR)
Delete a model from the registry
Delete a stored model
SELECT * FROM pysal.drop_model('columbus_err');
georgia ()
Georgia counties educational attainment and demographics (159 polygons)
Load the georgia dataset
SELECT * FROM pysal.georgia();
list_models ()
List all spatial-regression models in the registry
List stored models
SELECT * FROM pysal.list_models();
mexico ()
Mexican states regional per-capita GDP, 1940-2000 (32 polygons)
Load the mexico dataset
SELECT * FROM pysal.mexico();
model_info (model_name VARCHAR)
Describe a single stored model (one row, empty if absent)
Show one model's metadata
SELECT * FROM pysal.model_info('columbus_err');
sids ()
North Carolina SIDS (sudden infant death) counts and rates by county (100 polygons)
Load the sids dataset
SELECT * FROM pysal.sids();
us_states ()
Lower-48 US states boundaries and identifiers (48 polygons)
Load the us_states dataset
SELECT * FROM pysal.us_states();
gini (value DOUBLE)
Gini coefficient of inequality (0 = perfect equality, 1 = maximal inequality)
Gini coefficient of Mexican state per-capita GDP in 2000
SELECT pysal.gini(pcgdp2000) FROM pysal.mexico();
theil (value DOUBLE)
Theil's T entropy index of inequality
Theil index of Mexican state per-capita GDP in 2000
SELECT pysal.theil(pcgdp2000) FROM pysal.mexico();
box_plot (data TABLE, id := VARCHAR, k := BIGINT, value := VARCHAR)
Box-plot classification (quartiles and whiskers; flags outliers)
Classify columbus crime with box_plot
SELECT id, class, upper_bound
FROM pysal.box_plot((SELECT id, crime AS y FROM pysal.columbus()), value => 'y', id => 'id');
equal_interval (data TABLE, id := VARCHAR, k := BIGINT, value := VARCHAR)
Equal-interval classification (equal value width per class)
Classify columbus crime with equal_interval
SELECT id, class, upper_bound
FROM pysal.equal_interval((SELECT id, crime AS y FROM pysal.columbus()), value => 'y', id => 'id', k => 5);
fisher_jenks (data TABLE, id := VARCHAR, k := BIGINT, value := VARCHAR)
Fisher-Jenks optimal natural-breaks classification
Classify columbus crime with fisher_jenks
SELECT id, class, upper_bound
FROM pysal.fisher_jenks((SELECT id, crime AS y FROM pysal.columbus()), value => 'y', id => 'id', k => 5);
fit (data TABLE, geom := VARCHAR, id := VARCHAR, k := BIGINT, kernel_function := VARCHAR, model := VARCHAR, model_name := VARCHAR, target := VARCHAR, threshold := DOUBLE, transform := VARCHAR, w_type := VARCHAR, x := VARCHAR, y := VARCHAR)
Fit a spatial regression model, store it in the registry, and return a summary + model BLOB
Fit a spatial error model and store it as 'columbus_err'
SELECT model_name, model_type, pseudo_r2
FROM pysal.fit((SELECT crime AS target, inc, hoval, geom FROM pysal.columbus()), model => 'ml_error', target => 'target', model_name => 'columbus_err');
geary (data TABLE, geom := VARCHAR, k := BIGINT, kernel_function := VARCHAR, permutations := BIGINT, seed := BIGINT, threshold := DOUBLE, transform := VARCHAR, value := VARCHAR, w_type := VARCHAR, x := VARCHAR, y := VARCHAR)
Global Geary's C spatial autocorrelation statistic
Geary's C of neighbourhood crime
SELECT *
FROM pysal.geary((SELECT crime AS y, geom FROM pysal.columbus()), w_type => 'queen');
getis_ord_g (data TABLE, geom := VARCHAR, k := BIGINT, kernel_function := VARCHAR, permutations := BIGINT, seed := BIGINT, threshold := DOUBLE, transform := VARCHAR, value := VARCHAR, w_type := VARCHAR, x := VARCHAR, y := VARCHAR)
Getis-Ord General G statistic (global concentration of high/low values)
General G of crime using 8-nearest-neighbour weights
SELECT *
FROM pysal.getis_ord_g((SELECT crime AS y, geom FROM pysal.columbus()), w_type => 'knn', k => 8);
getis_ord_g_local (data TABLE, geom := VARCHAR, id := VARCHAR, k := BIGINT, kernel_function := VARCHAR, permutations := BIGINT, seed := BIGINT, significance := DOUBLE, star := BOOLEAN, threshold := DOUBLE, transform := VARCHAR, value := VARCHAR, w_type := VARCHAR, x := VARCHAR, y := VARCHAR)
Local Getis-Ord G_i/G_i* hot-spot and cold-spot analysis
Crime hot/cold spots using G_i* and 8-nearest-neighbour weights
SELECT id, z_score, hotspot
FROM pysal.getis_ord_g_local((SELECT id, crime AS y, geom FROM pysal.columbus()), w_type => 'knn', k => 8, id => 'id');
head_tail_breaks (data TABLE, id := VARCHAR, k := BIGINT, value := VARCHAR)
Head/tail-breaks classification for heavy-tailed (long-tail) distributions
Classify columbus crime with head_tail_breaks
SELECT id, class, upper_bound
FROM pysal.head_tail_breaks((SELECT id, crime AS y FROM pysal.columbus()), value => 'y', id => 'id');
local_moran (data TABLE, geom := VARCHAR, id := VARCHAR, k := BIGINT, kernel_function := VARCHAR, permutations := BIGINT, seed := BIGINT, significance := DOUBLE, threshold := DOUBLE, transform := VARCHAR, value := VARCHAR, w_type := VARCHAR, x := VARCHAR, y := VARCHAR)
Local Moran's I (LISA): per-observation spatial clusters and outliers
Significant local crime clusters/outliers on columbus
SELECT id, cluster, p_value
FROM pysal.local_moran((SELECT id, crime AS y, geom FROM pysal.columbus()), w_type => 'queen', id => 'id')
WHERE p_value < 0.05;
Profile local Moran crime clusters: join local_moran back to columbus by id and compare average crime, income, and house value per cluster type (high-high clusters are the poorer, lower-value neighbourhoods)
SELECT lm.cluster, count(*) AS neighbourhoods,
round(avg(c.crime), 1) AS avg_crime, round(avg(c.inc), 1) AS avg_income,
round(avg(c.hoval), 1) AS avg_house_value
FROM pysal.main.local_moran((SELECT id, crime AS y, geom FROM pysal.main.columbus()), w_type => 'queen', id => 'id') AS lm
JOIN pysal.main.columbus() AS c USING (id)
GROUP BY lm.cluster
ORDER BY avg_crime DESC;
moran (data TABLE, geom := VARCHAR, k := BIGINT, kernel_function := VARCHAR, permutations := BIGINT, seed := BIGINT, threshold := DOUBLE, transform := VARCHAR, value := VARCHAR, w_type := VARCHAR, x := VARCHAR, y := VARCHAR)
Global Moran's I spatial autocorrelation statistic
Moran's I of neighbourhood crime using queen contiguity
SELECT *
FROM pysal.moran((SELECT crime AS y, geom FROM pysal.columbus()), w_type => 'queen');
natural_breaks (data TABLE, id := VARCHAR, k := BIGINT, value := VARCHAR)
Jenks natural-breaks classification (k-means style)
Classify columbus crime with natural_breaks
SELECT id, class, upper_bound
FROM pysal.natural_breaks((SELECT id, crime AS y FROM pysal.columbus()), value => 'y', id => 'id', k => 5);
predict (data TABLE, id := VARCHAR, model := BLOB, model_name := VARCHAR)
Predict with a stored spatial-regression model (linear/systematic predictor)
Linear prediction from the stored 'columbus_err' model
SELECT *
FROM pysal.predict((SELECT id, inc, hoval FROM pysal.columbus()), model_name := 'columbus_err', id := 'id');
quantiles (data TABLE, id := VARCHAR, k := BIGINT, value := VARCHAR)
Quantile classification (equal number of observations per class)
Classify columbus crime with quantiles
SELECT id, class, upper_bound
FROM pysal.quantiles((SELECT id, crime AS y FROM pysal.columbus()), value => 'y', id => 'id', k => 5);
Average columbus crime per household-income quintile: classify income with quantiles, join the classes back to the dataset by id, and aggregate crime per class
SELECT q.class AS income_quintile,
round(max(q.upper_bound), 2) AS income_upper_bound,
count(*) AS neighbourhoods, round(avg(c.crime), 1) AS avg_crime
FROM pysal.main.quantiles((SELECT id, inc AS y FROM pysal.main.columbus()), value => 'y', k => 5, id => 'id') AS q
JOIN pysal.main.columbus() AS c USING (id)
GROUP BY q.class
ORDER BY income_quintile;
spreg (data TABLE, geom := VARCHAR, id := VARCHAR, k := BIGINT, kernel_function := VARCHAR, model := VARCHAR, target := VARCHAR, threshold := DOUBLE, transform := VARCHAR, w_type := VARCHAR, x := VARCHAR, y := VARCHAR)
Fit a spatial regression (OLS/ML_Lag/ML_Error/GM_Lag) and return the coefficient table
Maximum-likelihood spatial lag model of columbus crime
SELECT *
FROM pysal.spreg((SELECT crime AS target, inc, hoval, geom FROM pysal.columbus()), model => 'ml_lag', target => 'target', w_type => 'queen');
std_mean (data TABLE, id := VARCHAR, k := BIGINT, value := VARCHAR)
Standard-deviation classification (breaks at mean +/- multiples of std)
Classify columbus crime with std_mean
SELECT id, class, upper_bound
FROM pysal.std_mean((SELECT id, crime AS y FROM pysal.columbus()), value => 'y', id => 'id');
weights (data TABLE, geom := VARCHAR, id := VARCHAR, k := BIGINT, kernel_function := VARCHAR, threshold := DOUBLE, transform := VARCHAR, w_type := VARCHAR, x := VARCHAR, y := VARCHAR)
Build spatial weights and return the neighbour graph as an edge list
Queen-contiguity neighbour graph for the columbus polygons
SELECT *
FROM pysal.weights((SELECT polyid AS id, geom FROM pysal.columbus()), w_type => 'queen', id => 'id');
5-nearest-neighbour graph from point coordinates
SELECT *
FROM pysal.weights((SELECT polyid AS id, x, y FROM pysal.columbus()), w_type => 'knn', k => 5, id => 'id');
Spatial lag of columbus crime: join the row-standardised queen weights edge list to the dataset and average each neighbourhood's neighbours' crime; the five highest-lag neighbourhoods, with their own crime and neighbour count
WITH c AS (SELECT id, crime FROM pysal.main.columbus()) SELECT w.focal::BIGINT AS id, own.crime AS crime, round(sum(w.weight * nb.crime), 2) AS neighbour_crime, count(*) AS neighbours
FROM pysal.main.weights((SELECT id, geom FROM pysal.main.columbus()), w_type => 'queen', id => 'id') AS w
JOIN c AS own ON own.id = w.focal::BIGINT
JOIN c AS nb ON nb.id = w.neighbor::BIGINT
GROUP BY w.focal, own.crime
ORDER BY neighbour_crime DESC, id
LIMIT 5;
| id | crime | neighbour_crime | neighbours |
|---|---|---|---|
| 23 | 38.2979 | 54.91 | 7 |
| 15 | 54.8387 | 52.37 | 8 |
| 28 | 60.7504 | 51.79 | 7 |
| 17 | 43.9625 | 51.18 | 4 |
| 36 | 42.4451 | 50.99 | 6 |
weights_summary (data TABLE, geom := VARCHAR, k := BIGINT, kernel_function := VARCHAR, threshold := DOUBLE, transform := VARCHAR, w_type := VARCHAR, x := VARCHAR, y := VARCHAR)
Structural diagnostics for a spatial weights matrix (connectivity, islands)
Connectivity summary of queen weights on columbus
SELECT *
FROM pysal.weights_summary((SELECT geom FROM pysal.columbus()), w_type => 'queen');
Try these queries
Profile local Moran crime clusters: join local_moran back to columbus by id and compare average crime, income, and house value per cluster type (high-high clusters are the poorer, lower-value neighbourhoods)
SELECT lm.cluster, count(*) AS neighbourhoods,
round(avg(c.crime), 1) AS avg_crime, round(avg(c.inc), 1) AS avg_income,
round(avg(c.hoval), 1) AS avg_house_value
FROM pysal.main.local_moran((SELECT id, crime AS y, geom FROM pysal.main.columbus()), w_type => 'queen', id => 'id') AS lm
JOIN pysal.main.columbus() AS c USING (id)
GROUP BY lm.cluster
ORDER BY avg_crime DESC
Uses local_morancolumbus
Average columbus crime per household-income quintile: classify income with quantiles, join the classes back to the dataset by id, and aggregate crime per class
SELECT q.class AS income_quintile,
round(max(q.upper_bound), 2) AS income_upper_bound,
count(*) AS neighbourhoods, round(avg(c.crime), 1) AS avg_crime
FROM pysal.main.quantiles((SELECT id, inc AS y FROM pysal.main.columbus()), value => 'y', k => 5, id => 'id') AS q
JOIN pysal.main.columbus() AS c USING (id)
GROUP BY q.class
ORDER BY income_quintile
Queen-contiguity neighbour graph for the columbus polygons
SELECT *
FROM pysal.weights((SELECT polyid AS id, geom FROM pysal.columbus()), w_type => 'queen', id => 'id')
Classify columbus crime with std_mean
SELECT id, class, upper_bound
FROM pysal.std_mean((SELECT id, crime AS y FROM pysal.columbus()), value => 'y', id => 'id')
Maximum-likelihood spatial lag model of columbus crime
SELECT *
FROM pysal.spreg((SELECT crime AS target, inc, hoval, geom FROM pysal.columbus()), model => 'ml_lag', target => 'target', w_type => 'queen')
25 more examples in the Catalog, each listed under the table or function it uses.
PySAL is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.
Related workers
ArcGIS
Maps & places
Live ArcGIS feature queries, server summaries and raster sampling from service URLs worldwide
Ducks
Maps & places
Query duck species, sightings, seasonal range polygons and weekly regional abundance using Cornell Lab of Ornithology data
Geocode
Maps & places
Turn latitude/longitude into city, country, admin region and timezone offline, plus haversine distance