Open hegde-anish opened 1 year ago
Categorical data is not currently supported in Datashader. I have added a PR https://github.com/holoviz/holoviews/pull/5643, giving a better error message.
There is no plan to add this, but I will label this issue as a feature request.
ALL software version info
Version info
``` aiobotocore 2.4.2 aiofiles 22.1.0 aiohttp 3.8.4 aioitertools 0.11.0 aiosignal 1.3.1 aiosqlite 0.18.0 anyio 3.6.2 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 async-timeout 4.0.2 asynctest 0.13.0 attrs 22.2.0 aws-cfn-bootstrap 2.0 Babel 2.12.1 backcall 0.2.0 beautifulsoup4 4.9.3 bleach 6.0.0 bokeh 2.4.3 boto 2.49.0 boto3 1.26.84 botocore 1.27.59 certifi 2022.12.7 cffi 1.15.1 charset-normalizer 3.0.1 click 8.1.3 cloudpickle 2.2.1 colorcet 3.0.1 dask 2022.2.0 datashader 0.14.4 datashape 0.5.2 debugpy 1.6.6 decorator 5.1.1 defusedxml 0.7.1 docutils 0.14 entrypoints 0.4 fastjsonschema 2.16.3 frozenlist 1.3.3 fsspec 2023.1.0 holoviews 1.15.4 idna 3.4 importlib-metadata 6.0.0 importlib-resources 5.12.0 ipykernel 6.16.2 ipython 7.34.0 ipython-genutils 0.2.0 ipywidgets 8.0.4 jedi 0.18.2 Jinja2 3.1.2 jmespath 1.0.1 joblib 1.2.0 json5 0.9.11 jsonschema 4.17.3 jupyter-client 7.4.9 jupyter-core 4.12.0 jupyter-events 0.6.3 jupyter-server 1.23.6 jupyter-server-fileid 0.8.0 jupyter-server-ydoc 0.6.1 jupyter-ydoc 0.2.2 jupyterlab 3.6.1 jupyterlab-pygments 0.2.2 jupyterlab-server 2.19.0 jupyterlab-widgets 3.0.5 llvmlite 0.39.1 locket 1.0.0 lockfile 0.11.0 lxml 4.9.1 Markdown 3.4.1 MarkupSafe 2.1.2 matplotlib-inline 0.1.6 mistune 2.0.5 multidict 6.0.4 multipledispatch 0.6.0 mysqlclient 1.4.2 nbclassic 0.5.2 nbclient 0.7.2 nbconvert 7.2.9 nbformat 5.7.3 nest-asyncio 1.5.6 nltk 3.7 nodejs 0.1.1 nose 1.3.4 notebook 6.5.2 notebook-shim 0.2.2 numba 0.56.4 numpy 1.20.0 optional-django 0.1.0 packaging 23.0 pandas 1.3.5 pandocfilters 1.5.0 panel 0.14.4 param 1.12.3 parso 0.8.3 partd 1.3.0 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.4.0 pip 20.2.2 pkgutil-resolve-name 1.3.10 plotly 5.13.1 prometheus-client 0.16.0 prompt-toolkit 3.0.38 psutil 5.9.4 ptyprocess 0.7.0 py-dateutil 2.2 pyarrow 11.0.0 pycparser 2.21 pyct 0.5.0 Pygments 2.14.0 PyMySQL 1.0.2 pyrsistent 0.19.3 pystache 0.5.4 python-daemon 2.2.3 python-dateutil 2.8.2 python-json-logger 2.0.7 python37-sagemaker-pyspark 1.4.2 pytz 2022.6 pyviz-comms 2.2.1 PyYAML 5.4.1 pyzmq 25.0.0 regex 2021.11.10 requests 2.28.2 rfc3339-validator 0.1.4 rfc3986-validator 0.1.1 s3fs 2023.1.0 s3transfer 0.6.0 scipy 1.7.3 Send2Trash 1.8.0 setuptools 49.1.3 simplejson 3.2.0 six 1.13.0 sniffio 1.3.0 soupsieve 2.4 tenacity 8.2.2 terminado 0.17.1 tinycss2 1.2.1 tomli 2.0.1 toolz 0.12.0 tornado 6.2 tqdm 4.64.1 traitlets 5.9.0 typing-extensions 4.5.0 urllib3 1.26.14 wcwidth 0.2.6 webencodings 0.5.1 websocket-client 1.5.1 widgetsnbextension 4.0.5 windmill 1.6 wrapt 1.15.0 xarray 0.20.2 y-py 0.5.9 yarl 1.8.2 ypy-websocket 0.8.4 zipp 3.15.0 ```
Description of expected behavior and the observed behavior
I'm trying to plot categorical values on y-axis and timestamp on x-axis.
hv.Scatter
returns the expected graph but when I pass it throughdatashade
it throws below errorTypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
If I were to plot numerical values in y-axis, then both
hv.scatter
anddatashade
applied on top ofhv.scatter
returns expected graphsComplete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
Screenshots or screencasts of the bug in action