I am trying to perform a spatial autocorrelation function on a shapefile(shp). How do i generate a queen contiguity for this?
I read the pysal documentation and saw the 'queen_from_shapefile' but I get an error.
This is my code:
shp= gpd.read_file(r'..\data\districts.shp')
Q_w = ps.queen_from_shapefile(shp)
The error i keep getting is
AttributeError: module 'pysal' has no attribute 'queen_from_shapefile'