-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add isapprox support for dataframes. #2373
Conversation
In this latest commit I am using the isapprox method for individual columns defined https://github.com/JuliaLang/julia/blob/e58bc723ed7b1c10da28f55385c243f6df5499cf/stdlib/LinearAlgebra/src/generic.jl#L1631-L1642 here. One thing is that |
Also can you please update NEWS.md with an entry about this addition (it should be mentioned as new functionality). Thank you! |
Yeah. Will do it. Thanks for helping out. :) |
Should I add |
No, because it is a part of a standard library and in particular for The idea of "Dependency changes" is to inform users of possible dependency conflicts, but in this case there is no such risk (everyone has |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry - I have forgotten that the docstring is missing. Can you please add it before merging?
Oh. Really sorry, it skipped my mind. |
Co-authored-by: Bogumił Kamiński <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good apart from two minor things.
Ah, and it looks like you need to add LinearAlgebra to Project.toml to fix the CI failures. The line is:
|
Co-authored-by: Milan Bouchet-Valat <[email protected]>
It was added earlier - I wonder why it is now gone. |
It must have gone, when I rebased the branch onto |
Additionally functions.md in the documentation has to be updated. I think a new section |
Won't it be "equality"? Since I see |
We do not have a docstring for |
But we can add |
Add isapprox to equality section in functions Add isapprox to equality section in functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Based on #2169
@bkamins For now I went on with the way
Base.isapprox
handles numeric values. And used broadcasting for column elements. Is this the right way to go?