-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH]
select_rows
function implementation (#1173)
* add changelog * select_rows implementation * multiindex level selection implementation * tests added * updates to docs and tests * Merge branch 'samukweku/select_rows' of https://github.com/pyjanitor-devs/pyjanitor into samukweku/select_rows * updates to changelog * Update select_columns.ipynb * remove unnecessary file * add select_rows to janitor/__init__.py * update select_rows docs * updates to select links * add more tests * move utils/test__select_columns to functions/test_select_columns * change columns_to_select to cols * remove print * updates * spelling fix * Update CHANGELOG.md * Update utils.py * more tests * explicit label selection in pivot_longer and pivot_wider * spelling fix * tuple selection added * update logic for pivot_wider * improve performance when single value passed to select_* * fix for boolean array for single select_* * dict support for MultiIndex indexing * changelog * changelog * changelog * changelog * fix column selection via dictionary in conditional_join * Update pivot.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * updates to docs * simplify logic * simplify level_labels logic * add regex and callable options to dict * cleanup * test for callable errors * callable applied across entire dataframe for performance * add tests for MultiIndex dictionary * explicit support for pandas/numpy objects * add test for boolean callable length mismatch * fix test fails for conditional_join * Update select_columns.ipynb * edit on conditional join; improve on Pandas/numpy object selection on a multiindex * update * spelling fix * strip irrelevance from slice dispatch * fix for IndexLabel and dict * use loc directly if possible, else pass to _select_index * keep dict as-is in conditional_join * logic for when dictionary is used * logic for fnmatch/regex selection on multiindex * add tests for regex/fnmatch on multiindex * remove shortcut to loc * pass responsibility of slice to pandas * remove print * keys for dict for multiindex should be strings/integers only * remove IndexLabel class * changelog * improve error reporting for fnmatch * cleanup docs * cleanup docs * fix links * add notes for users * fix grammar * shortcut to get_indexer for performance, if possible * undo last commit * add dispatch for range * fix grammar * update docs Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Eric Ma <ericmjl@users.noreply.github.com>
- Loading branch information
1 parent
5ebf799
commit 8445dc0
Showing
14 changed files
with
1,249 additions
and
819 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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.