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

Accessing a DataFrame with an out of bounds range should raise #1005

Open
billylanchantin opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@billylanchantin
Copy link
Contributor

Today if a range extends past the end of a DataFrame, we filter those columns out.

df = Explorer.DataFrame.new(a: [1, 2, 3])
df[1..1]
# #Explorer.DataFrame<
#   Polars[0 x 0]
# >

Per the discussion here, we think we should raise instead.

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

No branches or pull requests

1 participant