-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Rowwise subset of a DataFrame based on index using .loc #7690
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
Comments
dupe here: #2033 This was an original API decision to make
you can simply further you would completely break (I suppose it could work with special casing, maybe), a very common operation:
if you would like to enhance the docs that would be fine. closing as a dupe |
as a side note its possible somthing like:
|
I would be strongly in favor of such an implementation however I do not know how much effort it will be so the worth is unknown. I would think that this is basic functionality and I can't think of when the current functionality would be useful. Perhaps a option with set theory ('Union', 'intersection') or SQL ('Inner','Outer') semantics would be more clear in the implementation than 'strict'. The current work around Also, |
this is an API issue, and as I stated has long been the case. This is the usecase for You have many options on what to do. You are effectively doing a |
https://stackoverflow.com/questions/24536734/rowwise-subset-of-a-dataframe-based-on-index
This should act like an inner join but it adds NULL rows to the table being operated on. At a very least it should raise an error when the index is not found.
The text was updated successfully, but these errors were encountered: