-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
unexpected behavior for missing data #260
Comments
These are great.
Both valid points and the first especially is irksome and potentially corrupting. |
Apologies, I didn't see the recommendation to clear out missing values first. I was copying from the examples (e.g. https://techascent.github.io/tech.ml.dataset/walkthrough.html#elementwise-operations). A number of the dataset examples in the documentation drop down to using tech.v3.datatype functions. It's a little unclear for a new user what the pitfalls of doing that are. |
I don't know if that recommendation is documented it just has been discussed on zulip. There certainly are pitfalls :-). Here are some things that may help this situation I think we can mitigate 1. by adding a protocol method to dtype-next which is For numeric types, the operational datatype if there were missing values would be :float64 else the operation datatype would match the actual datatype. Then update the code in dispatch.clj to respect such things and at least all of the math operations in tech.v3.datatype.functional would work as correctly as possible with missing values. For the second (sorting of nil values) perhaps we have a new option for sort - And finally the documentation could really be improved here especially for first time users. I think the tablecloth project is much further along this pathway and that is the current focus of the scicloj team. |
Not sure if this is intentional, but I found this behavior surprising:
Possibly related, missing values don't sort (I'd expect them to either move to the front, or end, but they don't budge)
This is using version "6.010". Thanks!
The text was updated successfully, but these errors were encountered: