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

error when using one dimension for indexing #2553

Merged
merged 7 commits into from
Nov 20, 2020

Conversation

bkamins
Copy link
Member

@bkamins bkamins commented Nov 20, 2020

This was asked for by @nalimilan and @pdeffebach.

I think we should be restrictive and cover only the most common cases. I was also unsure how to best formulate the error (and let us hope these definitions do not run into method ambiguities, because we use AbstractDataFrame in both, and Any in the second one). It seems they are OK.

The only change is that we throw ArgumentError not MethodError but it is considered non-breaking.

@bkamins bkamins added the non-breaking The proposed change is not breaking label Nov 20, 2020
@bkamins bkamins added this to the 1.0 milestone Nov 20, 2020
@bkamins bkamins changed the title error when using bare Symbol for indexing error when using one dimension for indexing Nov 20, 2020
@bkamins
Copy link
Member Author

bkamins commented Nov 20, 2020

@pdeffebach - are you OK with this? After I merge this PR I am going to make a patch release.

@bkamins bkamins merged commit 8386d0a into JuliaData:master Nov 20, 2020
@bkamins bkamins deleted the error_on_symbol_indexing branch November 20, 2020 19:56
@bkamins
Copy link
Member Author

bkamins commented Nov 20, 2020

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-breaking The proposed change is not breaking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants