-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
ENH: MultiIndex.from_frame #23141
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
ENH: MultiIndex.from_frame #23141
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
79bdecb
ENH - add from_frame method and accompanying squeeze method to multii…
sds9995 fa82618
ENH - guarentee that order of labels is preserved in multiindex to_fr…
sds9995 64b45d6
CLN - adhere to PEP8 line length
sds9995 64c7bb1
CLN - remove trailing whitespace
sds9995 3ee676c
ENH - raise TypeError on inappropriate input
sds9995 fd266f5
TST - add tests for mi.from_frame and mi.squeeze
sds9995 4bc8f5b
CLN - pep8 adherence in tests
sds9995 9d92b70
CLN - last missed pep8 fix
sds9995 45595ad
BUG - remove pd.DataFrame in favor of local import
ms7463 3530cd3
DOC - add more detailed docstrings for from_frame and squeeze
sds9995 1c22791
DOC - update MultiIndex.from_frame and squeeze doctests to comply wit…
sds9995 cf78780
CLN - cleanup docstrings and source
sds9995 64c2750
TST - reorganize some of the multiindex tests
sds9995 ede030b
CLN - adhere to pep8 line length
sds9995 190c341
BUG - ensure dtypes are preserved in from_frame and to_frame
sds9995 e0df632
TST - add tests for ensuring dtype fidelity and custom names for from…
sds9995 78ff5c2
CLN - pep8 adherence
sds9995 0252db9
DOC - add examples and change order of kwargs for from_frame
sds9995 d98c8a9
TST - parameterize tests
sds9995 8a1906e
CLN - pep8 adherence
sds9995 08c120f
CLN - pep8 adherence
sds9995 8353c3f
DOC/CLN - add versionadded tags, add to whatsnew page, and clean up i…
sds9995 9df3c11
CLN - squeeze -> _squeeze
sds9995 6d4915e
DOC - squeeze -> _squeeze in whatsnew
ms7463 b5df7b2
BUG - allow repeat column names in from_frame, and falsey column name…
sds9995 ab3259c
DOC - whatsnew formatting
sds9995 cf95261
TST - reorganize and add tests for more incompatible from_frame types
sds9995 63051d7
Merge branch 'enhancement/from_frame' of https://github.com/ArtinSarr…
sds9995 a75a4a5
CLN - remove squeeze tests
sds9995 8d23df9
CLN - remove squeeze parameter from from_frame
sds9995 c8d696d
Merge branch 'master' into enhancement/from_frame
sds9995 7cf82d1
TST - remove callable name option
sds9995 1a282e5
ENH - from_data initial commit
sds9995 b3c6a90
DOC - reduce whatsnew entry for to_frame
sds9995 c760359
CLN/DOC - add examples to from_frame docstring and make code more rea…
sds9995 bb69314
Merge branch 'master' into enhancement/from_frame
sds9995 9e11180
TST - use OrderedDict for dataframe construction
sds9995 96c6af3
Merge branch 'master' into enhancement/from_frame
sds9995 a5236bf
CLN - clean up code and use pytest.raises
sds9995 c78f364
Merge branch 'master' into enhancement/from_frame
sds9995 14bfea8
DOC - move to_frame breaking changes to backwards incompatible sectio…
sds9995 6960804
Merge branch 'master' into enhancement/from_frame
ms7463 11c5947
Merge branch 'master' into enhancement/from_frame
sds9995 904644a
Merge branch 'enhancement/from_frame' of https://github.com/ArtinSarr…
sds9995 30fe0df
DOC - add advanced.rst section
sds9995 ec60563
Merge branch 'master' into enhancement/from_frame
sds9995 8fc6609
Merge branch 'master' into enhancement/from_frame
sds9995 9b906c6
DOC/CLN - cleanup documentation
sds9995 e416122
CLN - fix linting error according to pandas-dev.pandas test
sds9995 4ef9ec4
DOC - fix docstrings
sds9995 4240a1e
CLN - fix import order with isort
sds9995 9159b2d
Merge branch 'master' into enhancement/from_frame
sds9995 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
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.