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

df[i, j] as an alias to df.loc[i, j] #25677

Closed
gatsoulis opened this issue Mar 12, 2019 · 2 comments
Closed

df[i, j] as an alias to df.loc[i, j] #25677

gatsoulis opened this issue Mar 12, 2019 · 2 comments

Comments

@gatsoulis
Copy link

Long shot (and apologies if duplicate, but nothing came up). It would be great if there was an "alias" to the df.loc[i, j] in the form of df[i, j].

@TomAugspurger
Copy link
Contributor

I don't think so. That would lead to ambiguous cases with selecting the column whose label is the tuple (i, j). I think the general agreement is that our __getitem__ is too complex as is #9595

@TomAugspurger TomAugspurger added this to the No action milestone Mar 12, 2019
@gatsoulis
Copy link
Author

Thanks for the reply and fair enough after reading the linked issue thread :). For the record from a user's perspective, I agree with @shoyer's comment #9595 (comment) , it would be an improvement in terms of usability.

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

2 participants