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

Add support for Tables.jl #87

Closed
wants to merge 1 commit into from
Closed

Conversation

rofinn
Copy link

@rofinn rofinn commented May 27, 2022

Pretty similar to what was in this comment and seems to resolve one of our issues from switching from MLDataUtils.jl.

@codecov-commenter
Copy link

codecov-commenter commented May 27, 2022

Codecov Report

Merging #87 (90d3104) into main (c1dc3c2) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #87   +/-   ##
=======================================
  Coverage   89.97%   89.97%           
=======================================
  Files          14       14           
  Lines         479      479           
=======================================
  Hits          431      431           
  Misses         48       48           
Impacted Files Coverage Δ
src/observation.jl 86.95% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1dc3c2...90d3104. Read the comment docs.

"""
function getobs end

# Generic Fallbacks
getobs(data) = data
getobs(data, idx) = data[idx]
getobs(data, idx) = istable(data) ? collect(rows(data))[idx] : data[idx]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Collecting all rows is too expensive, let's wait for the outcome of the discussion here
JuliaData/Tables.jl#278 (comment)

@CarloLucibello
Copy link
Member

closing in favor of #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants