-
Notifications
You must be signed in to change notification settings - Fork 367
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
select!(df, Not(tuple)) does not work #1997
Comments
This is intentional. Note that for e.g. arrays you have the same:
|
Ok then it's fine and thanks for the explanation, it was the first time I was trying to drop columns and was using |
Thank you so much! The documentation does not mention that tuples are not allowed. I spent two hours trying to know how to remove a column from a dataframe. I urge the developers to use column labels more often than column indices. Removing a column by index is very dangerous. Additionally, using select instead of delete is also confusing. Thank you! |
Agreed. We simply support both options, as sometimes it is more convenient to use number.
That is why we specifically give an example of it in Getting Started part of the manual (supposedly the first thing one reads when learning DataFrames.jl). You can find it here. I will add these examples also to docstrings of @nalimilan - do you think reverting |
Thanks bkamins for the timely and caring reply. I am new to Julia (switching from Python) Thanks again! |
In the link you have |
Yes, please! |
See #2011 (please leave a comment if something is not clear) |
The issue is pretty simple:
will fail (getindex error)
will work fine.
Maybe the behaviour from (2) could be generalised to iterables?
The text was updated successfully, but these errors were encountered: