Registry / data / giddy
library2.3.8pypypi✓ verified 86d ago

PySAL-giddy is a Python library for exploratory spatiotemporal data analysis, providing methods such as spatial Markov chains, rank-based Markov chains, and sequence analysis. Current version is 2.3.8, compatible with Python >=3.11. Releases are infrequent; the latest release was in 2025.

pip install giddy
INSTALL
IMPORT
SIG · GIDDY
G
giddy
datapythonv2.3.8
Install
28.8s avg
Import
18035ms
Disk
848MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.3.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 28.8s · import 14.428s · 770MB
848MB installed
● package 848MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Markov
from giddy.markov import Markov
Spatial_Markov
from giddy.markov import Spatial_Markov
LISA_Markov
from giddy.markov import LISA_Markov
Tau
from giddy.ranking import Tau
Sequence
from giddy.sequence import Sequence
giddy
import giddy
from giddy import *
Star imports are discouraged because the package's top-level __init__ exports many symbols; explicit imports reduce namespace pollution.

Basic usage of Markov and Spatial_Markov classes.

import libpysal from giddy.markov import Markov, Spatial_Markov import numpy as np # Create a simple transition matrix from random data np.random.seed(100) data = np.random.randint(0, 3, size=(10, 5)) m = Markov(data) print(m.p) print(m.classes) # For spatial Markov, we need spatial weights w = libpysal.weights.util.lat2W(4, 4) # Ensure same number of spatial units as rows in data # (this example is illustrative; actual use requires matching dimensions)
Debug
Known issues
breakingIn version 2.3.8, splot visualization code was moved into giddy itself. Previous imports from splot will break. Use giddy.viz instead.
fix
Update imports from 'splot' to 'giddy.viz'. For example, replace 'from splot.giddy import ...' with 'from giddy.viz import ...'.
affects: <2.3.8
deprecatedThe old 'giddy.mobility' module (functions like 'mobility_metrics') is deprecated and may be removed in future versions. Use 'giddy.markov' classes instead.
fix
Replace calls to giddy.mobility functions with the relevant Markov class methods (e.g., Markov.mobility).
affects: >=2.3.0
gotchaSpatial_Markov requires a spatial weights object with the same number of observations as the data. Mismatched dimensions cause obscure errors.
fix
Ensure the weights object's 'n' attribute matches the number of rows in the data matrix.
affects: all
gotchaThe default fill value for missing transitions in Markov chains is set to a small epsilon, not zero. This can affect results when comparing with other implementations.
fix
Check the 'fill_value' parameter in Markov.__init__ and set it to 0 if desired.
affects: all
Errors
Common errors & fixes
ImportError: cannot import name 'Spatial_Markov' from 'giddy'
The symbol is not exported at the package level; it must be imported from the submodule.
fix
Use 'from giddy.markov import Spatial_Markov' instead of 'from giddy import Spatial_Markov'.
ValueError: setting an array element with a sequence.
Often occurs when providing ragged data (lists of different lengths) to Markov or Spatial_Markov.
fix
Ensure the input data is a 2D numpy array or rectangular list of lists with consistent dimensions.
Upgrade
Version history
2.3.8latest on PyPI · released Dec 5, 2025
Audit
Dependencies
libpysalrequiredCore dependency for spatial weights and other PySAL utilities
esdarequiredExploratory spatial data analysis routines
mapclassifyoptionalClassification schemes for mapping
splotoptionalVisualization support (optional, but recommended for plotting)
Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
giddy — pip install giddy · libregistry