From 0fdb4743556dd29f1e3ec55dc65377b6660b2049 Mon Sep 17 00:00:00 2001 From: James Gaboardi Date: Wed, 21 Sep 2022 16:07:36 -0400 Subject: [PATCH] resolves #426 --- momepy/diversity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/momepy/diversity.py b/momepy/diversity.py index 279551ce..5e0c58db 100644 --- a/momepy/diversity.py +++ b/momepy/diversity.py @@ -922,7 +922,7 @@ def __init__( np.nanpercentile(values_list, percentiles, **method) ) else: - results_list.append(np.nan) + results_list.append(np.array([np.nan] * len(percentiles))) self.frame = pd.DataFrame( results_list, columns=percentiles, index=gdf.index