-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: add peek function #36277
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
ENH: add peek function #36277
Conversation
added peek in generic.py
Hello @Quetzalcohuatl! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-09-10 22:26:09 UTC |
This has been discussed previously in #18691 - not sure we want to add this to the API |
yeah -1 on adding this. We already already pretty much show this when doing a repr. |
thanks @Quetzalcohuatl plently of formatting issues if you would like to tackle. |
@jreback We have |
@Quetzalcohuatl see the linked issue - happy to take an example function (see @TomAugspurger example) / doc string update this is useful but we cannot have everything |
added peek, which is essentially a concatenation of head and tail functions. The reason I add, is because often for sorted data, you are interested in looking at both the head and tail simultaneously to see the min/max range.