Skip to content

Commit

Permalink
try fixing the dev failure
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Jul 9, 2024
1 parent f594ca7 commit e164959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions momepy/functional/tests/test_diversity.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def test_unique(self):
)

# to count nas you have to explicitly process them npw
self.df_tessellation.loc[self.df_tessellation["cat"].isna(), "cat"] = "np.nan"
self.df_tessellation.loc[self.df_tessellation["cat"].isna(), "cat"] = np.nan
un_nan = self.diversity_graph.describe(
self.df_tessellation["cat"], statistics=["nunique"]
)["nunique"]
Expand Down Expand Up @@ -1093,7 +1093,7 @@ def test_unique(self):
assert_series_equal(un_new, un_old, check_dtype=False, check_names=False)

# to keep NAs you ahve to explicitly process them now
self.df_tessellation.loc[self.df_tessellation["cat"].isna(), "cat"] = "np.nan"
self.df_tessellation.loc[self.df_tessellation["cat"].isna(), "cat"] = np.nan
un_new = self.graph_diversity.describe(
self.df_tessellation["cat"], statistics=["nunique"]
)["nunique"]
Expand Down

0 comments on commit e164959

Please sign in to comment.