Skip to content

Commit 8933791

Browse files
author
Sean Sullivan
committed
Upgrade datashader to newest version and pick up single category fix. ran into issue where categorie '' already existed
1 parent 5757d33 commit 8933791

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

elastic_datashader/tilegen.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,10 +1273,6 @@ def remap_bucket(bucket, search):
12731273
except ValueError:
12741274
pass
12751275

1276-
# datashader has issue in 0.15.0 with categories that have only one class
1277-
# https://github.com/holoviz/datashader/issues/1230
1278-
if len(categories) == 1:
1279-
categories.append('')
12801276
cat_dtype = pd.api.types.CategoricalDtype(categories=categories, ordered=True)
12811277
df["t"] = df["t"].astype(cat_dtype)
12821278

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ elastic_datashader = "elastic_datashader.cli:main"
2323
python = ">=3.10,<4"
2424
elasticsearch = "7.17.4"
2525
elasticsearch-dsl = "7.4.0"
26-
datashader = "0.15.0"
26+
datashader = "0.15.2"
2727
pandas = "^1.5.3"
2828
colorcet = "^3.0.1"
2929
mercantile = "1.2.1"

0 commit comments

Comments
 (0)