We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 810f662 commit 5fff0ebCopy full SHA for 5fff0eb
elastic_datashader/tilegen.py
@@ -1271,6 +1271,10 @@ def remap_bucket(bucket, search):
1271
categories.insert(0, categories.pop(categories.index("Other")))
1272
except ValueError:
1273
pass
1274
+
1275
+ # datashader has issue in 0.15.0 with categories that have only one class
1276
+ if len(categories) == 1:
1277
+ categories.append('')
1278
cat_dtype = pd.api.types.CategoricalDtype(categories=categories, ordered=True)
1279
df["t"] = df["t"].astype(cat_dtype)
1280
0 commit comments