Closed huxuan closed 2 weeks ago
Hey @huxuan, thanks for raising this issue! If you wouldn't mind, could you open up a PR that adds a better error message (ValueError
) in this ndarray encoding function for when the input np array has no elements? We always welcome open source contributions!
Environment
To reproduce
Steps to reproduce the behavior:
Create a python script (e.g.
main.py
) with the following snippets:run with
python main.py
and it will complain aboutExpected behavior
I think we should either handle the case silently or give more friendly error message.
Additional context