You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libpysal/weights/weights.py
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -311,6 +311,13 @@ def to_adjlist(
311
311
raiseImportError(
312
312
"pandas must be installed & importable to use this method"
313
313
)
314
+
if (drop_islandsisNone) andnot (self.silence_warnings):
315
+
warnings.warn(
316
+
"In the next version of libpysal, observations with no neighbors will be included in adjacency lists as loops (row with the same focal and neighbor) with zero weight. In the current version, observations with no neighbors are dropped. If you would like to keep the current behavior, use drop_islands=True in this function",
0 commit comments