-
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
Synchronize ByRow and Tables.subset with Tables.jl 1.8 #3158
Conversation
@nalimilan - could you please review this. Due to changes in Tables.jl 1.8 tests in DataFrames.jl will fail in all other PRs, so this PR needs to be merged first and next all other PRs must be updated against new |
src/other/tables.jl
Outdated
@@ -103,3 +103,12 @@ IteratorInterfaceExtensions.getiterator(df::AbstractDataFrame) = | |||
Tables.datavaluerows(Tables.columntable(df)) | |||
IteratorInterfaceExtensions.isiterable(x::AbstractDataFrame) = true | |||
TableTraits.isiterabletable(x::AbstractDataFrame) = true | |||
|
|||
function Tables.subset(df::AbstractDataFrame, inds; view::Union{Bool, Nothing}=nothing) |
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.
Should we use @inline
to ensure the return type is inferred?
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.
added. It should not be a problem - the function is small (on newer Julia constant propagation also should be applied without inlining AFAICT, x-ref: JuliaLang/julia#43852).
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.
I added @inferred
where applicable
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
Thank you! |
Fixes #3127