-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: A new GroupBy method to slice rows preserving index and order #42947
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
Merged
Merged
Changes from all commits
Commits
Show all changes
119 commits
Select commit
Hold shift + click to select a range
72fd66d
ENH: A new GroupBy method to slice rows preserving index and order
johnzangwill d0ebbeb
Formatting
johnzangwill 33d7992
Formatting
johnzangwill 78e9ced
Formatting
johnzangwill 4d098cd
Formatting
johnzangwill f84c365
Formatting
johnzangwill d937757
Add iloc to test_tab_completion
johnzangwill e206912
Add iloc to groupby/base.py
johnzangwill 1788f1b
Documentation
johnzangwill f6977fa
Cosmetics to make pre-commit happy
johnzangwill bca4fdd
Improve docstring
johnzangwill 66536b1
Delete a.md
johnzangwill d075c67
Add to doc and improve test
johnzangwill df1a767
Tidy-up for pre-commit
johnzangwill f2e9f79
Update groupbyindexing.py
johnzangwill a9f9848
Split a long line
johnzangwill e42c86d
GroupBy.rows implementation
johnzangwill bab88c9
Add rows to rst file
johnzangwill a74bd33
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill c77de1d
Change iloc to rows in test_allowlist.py
johnzangwill 0d750bb
Merge branch 'groupby_iloc' of https://github.com/johnzangwill/pandas…
johnzangwill e952c25
Add to base.py
johnzangwill 2a6aafc
Tidy some whitespace for pep8speaks
johnzangwill b7f8bfe
Tidied mask code
johnzangwill 86e0c2e
test_rows.py formatting
johnzangwill 6f75502
Correct docstring bullet format
johnzangwill 8de5ff2
Update test_rows.py
johnzangwill f51fa88
Remove blank line at end of docstring
johnzangwill 3063f3a
Small change to force rebuild
johnzangwill 4228251
Make rows 100% compatible with nth
johnzangwill 41b1c73
Temporarily reroute nth list and slice to rows
johnzangwill ce36210
Rows for all non-dropna calls + types and tests
johnzangwill 70dcdb5
Merge branch 'master' into groupby_iloc
johnzangwill c024e41
Changes for flake8
johnzangwill 8abcac3
just one more comma...
johnzangwill add5727
Add type hints
johnzangwill bcd1dd9
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 25459f7
Delete my build.cmd. Accidental commit
johnzangwill fa6b86c
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill fefbacf
jreback 12 Sep requested changes
johnzangwill fa9f7e3
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill b589420
remove white-space
johnzangwill 89deee3
Get rid of np.int test
johnzangwill e28cdfb
Revert "Get rid of np.int test"
johnzangwill 424ab14
Try again...
johnzangwill 258530d
More jreback requested changes
johnzangwill d49e48f
More tweaks
johnzangwill 1dd6258
Whitespace
johnzangwill f84f5c0
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill c068162
Remove blank lines in conditionals
johnzangwill 536298e
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 0e73278
Merge branch 'groupby_iloc' of https://github.com/johnzangwill/pandas…
johnzangwill 4cfde7b
Mainly variable changes and some formatting
johnzangwill 6343c9f
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 33a2225
Make group_selection_context a private GroupBy class method
johnzangwill 6ca80c2
Merge branch 'groupby_iloc' of https://github.com/johnzangwill/pandas…
johnzangwill e94d4a8
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 0d91dca
Add conditional typing for groupby import
johnzangwill acc3993
Merge branch 'groupby_iloc' of https://github.com/johnzangwill/pandas…
johnzangwill df52694
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill f42ae41
Delete Example section
johnzangwill 898fad4
Changes for @rhshadrach.
johnzangwill ffaaf25
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 02ec03c
Remove more docstrings from tests
johnzangwill 0691f99
Merge branch 'groupby_iloc' of https://github.com/johnzangwill/pandas…
johnzangwill 7cad2c0
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 44120e1
Don't need to check for None anymore
johnzangwill 88b8ac5
Speed up by checking dropna
johnzangwill 0ee53cd
Implement head, tail. column axis, change _rows to _middle and remove…
johnzangwill 945a482
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 9412e3e
Change _middle to _body
johnzangwill 138b791
Merge branch 'groupby_iloc' of https://github.com/johnzangwill/pandas…
johnzangwill 6b29c82
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill ea45bc6
Change class name to match
johnzangwill 179912e
Merge branch 'groupby_iloc' of https://github.com/johnzangwill/pandas…
johnzangwill 19edf00
Add negative values to test_body.py/test_against_head_and_tail()
johnzangwill 94f6e99
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill ae21059
Add _body docstring
johnzangwill 5b8142b
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill c8e0950
Merge branch 'groupby_iloc' of https://github.com/johnzangwill/pandas…
johnzangwill 6ce90c4
Make nth a link
johnzangwill 4f6cbe1
Improve doc
johnzangwill 7d92c79
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 19b21bb
Simplify examples
johnzangwill 1a055e4
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill ca164cf
Fix FrameOrSeries typing problem
johnzangwill 337b15c
Fix more new typing problems
johnzangwill 69d8956
More typing problems
johnzangwill cecc674
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 98a9460
More typing woes
johnzangwill 95eb548
Merge branch 'groupby_iloc' of https://github.com/johnzangwill/pandas…
johnzangwill 4c8644b
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill d0e9aa0
Create test_body.py
johnzangwill 10cca16
Merge branch 'master' into groupby_iloc
johnzangwill 9ccebf1
Merge branch 'master' into groupby_iloc
johnzangwill a3db969
Resolve conflicts
johnzangwill 4c4ba92
Avoid groupby name clash
johnzangwill 13ff29f
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill acf67b1
Delete duplicated test_body.py
johnzangwill a3db6d1
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill ee8a86b
Merge branch 'master' into groupby_iloc
johnzangwill f4b24b0
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 82360f5
Rename test_body.py to test_indexing.py
johnzangwill ba836dc
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 8abcad7
@jreback suggested renames
johnzangwill 86c8e20
Update whatsnew v1.4.0
johnzangwill ee33df0
Correct typo in doc
johnzangwill 4a1aac9
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill d9671a6
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill a6dbc61
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill f65093c
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 534ea54
Resolve with another branch
johnzangwill 511c8fd
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 97c3ac0
NDFrameT cannot be used like that
johnzangwill 90a4cb8
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill b58b235
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill f5ed6bf
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 21b3637
Merge branch 'pandas-dev:master' into groupby_iloc
johnzangwill 88613a9
Merge branch 'master' into groupby_iloc
johnzangwill File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.