-
Notifications
You must be signed in to change notification settings - Fork 373
Synchronize ByRow and Tables.subset with Tables.jl 1.8 #3158
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
Changes from 2 commits
87f554a
b30e251
903737b
90ca1ea
6192c56
c220317
a55d453
bf4d13a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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) | ||
|
||
| res = view === true ? DataFrames.view(df, inds, :) : df[inds, :] | ||
nalimilan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if res isa DataFrameRow && view == false | ||
bkamins marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| return copy(res) | ||
| else | ||
| return res | ||
| end | ||
| end | ||
Uh oh!
There was an error while loading. Please reload this page.