-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Ability to scroll through dataframe or series for viewing #4193
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
Maybe a method called page? Want to submit a pr? |
Saw this earlier and was thinking of something like: def page(sliceable, step=10, start=0):
last = nxt = start
past_end = False
while not past_end:
last, nxt = nxt, nxt + step
yield sliceable[last:nxt]
if nxt > len(sliceable):
past_end = True Caveat: this was quick and dirty, would need to test to make sure it covers 0 length sliceables and covers the entire end of the array. |
@jtratner i like that! i was thinking something a little different was thinking you could page through the frame in an actual pager what u wrote there could be the backend for it, maybe your method could be called something like would be equiv to something like but i think it could be a separate issue/feature/pr |
related #5611 |
It's been a while, is there any traction behind this issue? Is this something pandas should support, or is it more the purview of ipython, Jupyter, etc.? There's a related issue that thought it was the latter. |
this was for a text paginator, not an html one (which is the purview of |
Thanks for clarifying, @jreback. |
Use this gist to paginate pandas Dataframe within Jupyter Notebook: |
This seems a little out of scope for pandas now and more suited for jupyter. Closing. |
I think it would be nice to be able to scroll through a DataFrame by calling whatever scroll function and then holding down the up or down arrow to scroll through the different rows in a series or dataframe and the left and right arrows to scroll across various columns. Currently, it's a little cumbersome to type in different index ranges if you want to quickly look at different parts of a dataframe ala df[0:60], then df[60:120], etc.
The text was updated successfully, but these errors were encountered: