Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Inf in Array(Float) #386

Open
dberenbaum opened this issue Sep 3, 2024 · 0 comments
Open

Support Inf in Array(Float) #386

dberenbaum opened this issue Sep 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dberenbaum
Copy link
Collaborator

Array(Float) columns are serialized as json using the orjson library, which does not support Inf values (see this issue) and will treat them as null/nan:

>>> DataChain.from_values(val=[[0.0, float("nan"), float("inf")]]).show()
Processed: 1 rows [00:00, 1862.48 rows/s]
Generated: 1 rows [00:00, 1987.82 rows/s]
Cleanup: 1 tables [00:00, 4346.43 tables/s]
               val
0  [0.0, nan, nan]
@dberenbaum dberenbaum changed the title Support and Inf in Array(Float) Support Inf in Array(Float) Sep 3, 2024
@dberenbaum dberenbaum added the bug Something isn't working label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant