pysal / momepy

Urban Morphology Measuring Toolkit
https://docs.momepy.org
BSD 3-Clause "New" or "Revised" License
495 stars 59 forks source link

MeanInterbuildingDistance outputs Nans #520

Closed ale-v closed 1 year ago

ale-v commented 1 year ago

Describe the problem

The Momepy function MeanInterbuildingDistance outputs a columns full of Nans even though no error is shown.

Steps to reproduce

Replicating the example provided in http://docs.momepy.org/en/stable/examples/clustering.html

This is the line that outputs the unexpected result:

buildings['interbuilding_distance'] = momepy.MeanInterbuildingDistance(buildings, queen_1, 'uID', queen_3, verbose=False).series

Versions of your packages

momepy=0.6.0 geopandas=0.14.1 pysal=23.1 python=3.10.13

Your operating system

No response

Additional context

No response