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

[WIP] Mutate function #1229

Closed
wants to merge 37 commits into from
Closed

[WIP] Mutate function #1229

wants to merge 37 commits into from

Commits on Feb 1, 2023

  1. skeleton for mutate

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    1b9afd1 View commit details
    Browse the repository at this point in the history
  2. add test for dict

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    1479368 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3f4a07b View commit details
    Browse the repository at this point in the history
  4. add tests for dict output

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    dedcf19 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a0ffed2 View commit details
    Browse the repository at this point in the history
  6. add tests for groupby

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    7d3adbc View commit details
    Browse the repository at this point in the history
  7. tuple length check

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    7a40891 View commit details
    Browse the repository at this point in the history
  8. name check tuple

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    8f0681e View commit details
    Browse the repository at this point in the history
  9. function check tuple

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    9ce7c95 View commit details
    Browse the repository at this point in the history
  10. parametrize where possible

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    84f5c5a View commit details
    Browse the repository at this point in the history
  11. implement tuple func

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    4c62a18 View commit details
    Browse the repository at this point in the history
  12. rework logic

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    3ed98ef View commit details
    Browse the repository at this point in the history
  13. rework error checks

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    7ae6f79 View commit details
    Browse the repository at this point in the history
  14. add examples to docs

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    ba7d132 View commit details
    Browse the repository at this point in the history
  15. changelog

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    eb1d3ad View commit details
    Browse the repository at this point in the history
  16. typing changes

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    fb5e908 View commit details
    Browse the repository at this point in the history
  17. docs update

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    4904e89 View commit details
    Browse the repository at this point in the history
  18. fix doctest failure

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    40ee71a View commit details
    Browse the repository at this point in the history
  19. fix doctest failures

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    dc032e0 View commit details
    Browse the repository at this point in the history
  20. fix more doctest failures

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    8969973 View commit details
    Browse the repository at this point in the history
  21. fix more doctest failures

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    e22cedb View commit details
    Browse the repository at this point in the history
  22. reword docs

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    9540581 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c86f35d View commit details
    Browse the repository at this point in the history
  24. delete summarize.py

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    85f11d9 View commit details
    Browse the repository at this point in the history
  25. avoid multiindex columns

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    1ea1988 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    fed4ac7 View commit details
    Browse the repository at this point in the history
  27. fix format in docs

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    a9dc8cf View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    4ce6931 View commit details
    Browse the repository at this point in the history
  29. dictionary for by

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    5f5b7e0 View commit details
    Browse the repository at this point in the history
  30. fix wrong name in docs

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    4633a55 View commit details
    Browse the repository at this point in the history
  31. remove irrelevant code

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    b68cf87 View commit details
    Browse the repository at this point in the history
  32. [ENH] pivot_longer - named groups in regex and dictionary support (#…

    …1220)
    
    * names_pattern supports named_groups
    
    * improve tests
    
    * fix format in example
    
    * add another example for named groups
    
    * add details about names_pattern and named groups
    
    * add support for dictionary for names_pattern
    
    * changelog
    
    * changelog
    
    * Update CHANGELOG.md
    
    * add test for _ as placeholder for .value
    
    * change logic for replacing _ with .value
    
    * format example output
    
    * Version added
    
    * Update pivot.py
    
    * update docs based on feedback
    
    Co-authored-by: Eric Ma <[email protected]>
    samukweku and ericmjl committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    f72cb7c View commit details
    Browse the repository at this point in the history
  33. [ENH] minor fixes (#1219)

    * minor fix for drop_constant_columns
    
    * minor fix for get_dupes
    
    * minor fix for collapse_levels, primarily for speed
    
    * fix test fails
    
    * fix test fails
    
    * vectorise collapse_levels some more for performance sake
    
    * allow for mutation
    
    * leave collapse_levels as is
    
    * Update test_collapse_levels.py
    
    * Update test_collapse_levels.py
    
    * Update test_collapse_levels.py
    
    * restor collapse_levels to before
    
    * shortcut if all entries are strings in a list in a select call
    
    * use get_indexer_for for lists that contain only strings in select
    
    * make more robust by checking on scalar, instead of just strings
    
    * improve comments
    
    * rebase
    
    * more edits
    
    * remove extra check
    
    * shortcut for *
    
    * exclude api/utils from mkdocs
    
    * exclude api/utils from mkdocs
    
    * simplify move
    
    * avoid mutation in collapse_levels
    
    * make move more robust with select syntax
    
    * docs
    
    * fix docstring
    
    * replicate fill_empty in impute - reduce duplication
    
    * add tests
    
    * fix doctest
    
    * fix docstrings
    
    * defer copy in pivot_wider to pd.pivot
    
    * fix np.bool8 deprecation
    
    * simplify dtype column selection
    
    * fix warning msg output for change_type
    
    * [pre-commit.ci] auto fixes from pre-commit.com hooks
    
    for more information, see https://pre-commit.ci
    
    * rebase
    
    * expose _select_index
    
    * add parameters
    
    * use get_index_labels where possible
    
    * add test for multiple columns
    
    * make column selection more robust for sequences
    
    * add test for set/dict selection
    
    * add test for move - both source and target are lists
    
    * exclude utils from docs
    
    * fix test fails
    
    ---------
    
    Co-authored-by: samuel.oranyeli <[email protected]>
    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    3 people committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    0f119ad View commit details
    Browse the repository at this point in the history
  34. tuple length check

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    d3b09ad View commit details
    Browse the repository at this point in the history
  35. changelog

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    199631e View commit details
    Browse the repository at this point in the history
  36. updates

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    0ae5762 View commit details
    Browse the repository at this point in the history
  37. updates

    samukweku committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    5aff13b View commit details
    Browse the repository at this point in the history