We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a09c42 + 49c69b6 commit 6e805a5Copy full SHA for 6e805a5
libpysal/weights/weights.py
@@ -432,12 +432,9 @@ def to_adjlist(
432
433
links = []
434
focal_ix, neighbor_ix = self.sparse.nonzero()
435
- names = np.asarray(self.id_order)
436
- focal = names[focal_ix]
437
- neighbor = names[neighbor_ix]
438
weights = self.sparse.data
439
adjlist = pandas.DataFrame(
440
- {focal_col: focal, neighbor_col: neighbor, weight_col: weights}
+ {focal_col: focal_ix, neighbor_col: neighbor_ix, weight_col: weights}
441
)
442
if remove_symmetric:
443
adjlist = adjtools.filter_adjlist(adjlist)
0 commit comments