Skip to content

Commit

Permalink
TST: resolve FutureWarnings in graph apply tests (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis authored Feb 7, 2024
1 parent 0ed4bf8 commit 9612089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpysal/graph/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ def test_apply(self):
)
pd.testing.assert_frame_equal(
contig.apply(
self.nybb, lambda x: x[["Shape_Leng", "Shape_Area"]].sum(axis=None)
self.nybb, lambda x: x[["Shape_Leng", "Shape_Area"]].sum(axis=0)
),
expected,
)
Expand Down Expand Up @@ -1078,7 +1078,7 @@ def test_apply(self):
pd.testing.assert_frame_equal(
contig.apply(
self.nybb[["Shape_Leng", "Shape_Area"]].values,
lambda x: x.sum(axis=None),
lambda x: x.sum(axis=0),
),
expected,
)
Expand Down

0 comments on commit 9612089

Please sign in to comment.