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 712a0e0 commit 9928acdCopy full SHA for 9928acd
elastic_datashader/pandas_util.py
@@ -48,7 +48,7 @@ def simplify_categories(
48
df = df.copy()
49
df[col] = df[col].map(color_key)
50
df[col] = df[col].astype("category")
51
- df[col].cat.remove_unused_categories(inplace=True)
+ df[col] = df[col].cat.remove_unused_categories()
52
# at this point, categories and colors are the same thing
53
# return a new color key that can be passed to shade()
54
new_color_key = {x: x for x in df[col].cat.categories}
0 commit comments