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