-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: concat and append now can handle unordered categories #13767
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
jorisvandenbossche
merged 2 commits into
pandas-dev:master
from
sinhrks:append_categorical
Sep 7, 2016
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,34 +78,35 @@ some configurable handling of "what to do with the other axes": | |
:: | ||
|
||
pd.concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False, | ||
keys=None, levels=None, names=None, verify_integrity=False) | ||
keys=None, levels=None, names=None, verify_integrity=False, | ||
copy=True) | ||
|
||
- ``objs``: a sequence or mapping of Series, DataFrame, or Panel objects. If a | ||
- ``objs`` : a sequence or mapping of Series, DataFrame, or Panel objects. If a | ||
dict is passed, the sorted keys will be used as the `keys` argument, unless | ||
it is passed, in which case the values will be selected (see below). Any None | ||
objects will be dropped silently unless they are all None in which case a | ||
ValueError will be raised. | ||
- ``axis``: {0, 1, ...}, default 0. The axis to concatenate along. | ||
- ``join``: {'inner', 'outer'}, default 'outer'. How to handle indexes on | ||
- ``axis`` : {0, 1, ...}, default 0. The axis to concatenate along. | ||
- ``join`` : {'inner', 'outer'}, default 'outer'. How to handle indexes on | ||
other axis(es). Outer for union and inner for intersection. | ||
- ``join_axes``: list of Index objects. Specific indexes to use for the other | ||
- ``ignore_index`` : boolean, default False. If True, do not use the index | ||
values on the concatenation axis. The resulting axis will be labeled 0, ..., | ||
n - 1. This is useful if you are concatenating objects where the | ||
concatenation axis does not have meaningful indexing information. Note | ||
the index values on the other axes are still respected in the join. | ||
- ``join_axes`` : list of Index objects. Specific indexes to use for the other | ||
n - 1 axes instead of performing inner/outer set logic. | ||
- ``keys``: sequence, default None. Construct hierarchical index using the | ||
- ``keys`` : sequence, default None. Construct hierarchical index using the | ||
passed keys as the outermost level. If multiple levels passed, should | ||
contain tuples. | ||
- ``levels`` : list of sequences, default None. Specific levels (unique values) | ||
to use for constructing a MultiIndex. Otherwise they will be inferred from the | ||
keys. | ||
- ``names``: list, default None. Names for the levels in the resulting | ||
- ``names`` : list, default None. Names for the levels in the resulting | ||
hierarchical index. | ||
- ``verify_integrity``: boolean, default False. Check whether the new | ||
- ``verify_integrity`` : boolean, default False. Check whether the new | ||
concatenated axis contains duplicates. This can be very expensive relative | ||
to the actual data concatenation. | ||
- ``ignore_index`` : boolean, default False. If True, do not use the index | ||
values on the concatenation axis. The resulting axis will be labeled 0, ..., | ||
n - 1. This is useful if you are concatenating objects where the | ||
concatenation axis does not have meaningful indexing information. Note | ||
the index values on the other axes are still respected in the join. | ||
- ``copy`` : boolean, default True. If False, do not copy data unnecessarily. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what I meant above is can you put a ref from here to the new section you added in categorical.rst above. IOW if someone is looking for behavior of concat, they usually start here. |
||
|
||
Without a little bit of context and example many of these arguments don't make | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a link with a note in
merge.rst
to here