-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Improve the docstring of pandas.DataFrame.append() #20267
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
Changes from 1 commit
4377e47
01af9d1
1ffcece
6c3946a
083afcc
389d7ee
cb78862
df9e2a8
023ed83
cb9ee77
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,14 +143,16 @@ | |
----------%s | ||
right : DataFrame | ||
how : {'left', 'right', 'outer', 'inner'}, default 'inner' | ||
How to handle the operation of the two objects. | ||
|
||
* left: use only keys from left frame, similar to a SQL left outer join; | ||
preserve key order | ||
preserve key order. | ||
* right: use only keys from right frame, similar to a SQL right outer join; | ||
preserve key order | ||
preserve key order. | ||
* outer: use union of keys from both frames, similar to a SQL full outer | ||
join; sort keys lexicographically | ||
join; sort keys lexicographically. | ||
* inner: use intersection of keys from both frames, similar to a SQL inner | ||
join; preserve the order of the left keys | ||
join; preserve the order of the left keys. | ||
on : label or list | ||
Column or index level names to join on. These must be found in both | ||
DataFrames. If `on` is None and not merging on indexes then this defaults | ||
|
@@ -166,18 +168,18 @@ | |
left_index : boolean, default False | ||
Use the index from the left DataFrame as the join key(s). If it is a | ||
MultiIndex, the number of keys in the other DataFrame (either the index | ||
or a number of columns) must match the number of levels | ||
or a number of columns) must match the number of levels. | ||
right_index : boolean, default False | ||
Use the index from the right DataFrame as the join key. Same caveats as | ||
left_index | ||
left_index. | ||
sort : boolean, default False | ||
Sort the join keys lexicographically in the result DataFrame. If False, | ||
the order of the join keys depends on the join type (how keyword) | ||
the order of the join keys depends on the join type (how keyword). | ||
suffixes : 2-length sequence (tuple, list, ...) | ||
Suffix to apply to overlapping column names in the left and right | ||
side, respectively | ||
side, respectively. | ||
copy : boolean, default True | ||
If False, do not copy data unnecessarily | ||
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. Generally put built-ins in backticks, so `False` wherever applicable |
||
indicator : boolean or string, default False | ||
If True, adds a column to output DataFrame called "_merge" with | ||
information on the source of each row. | ||
|
@@ -199,7 +201,7 @@ | |
dataset. | ||
* "many_to_many" or "m:m": allowed, but does not result in checks. | ||
|
||
.. versionadded:: 0.21.0 | ||
.. versionadded:: 0.21.0. | ||
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. Don't put a period at the end of the |
||
|
||
Notes | ||
----- | ||
|
@@ -2689,7 +2691,7 @@ def insert(self, loc, column, value, allow_duplicates=False): | |
allow_duplicates=allow_duplicates) | ||
|
||
def assign(self, **kwargs): | ||
r""" | ||
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. There is a reason for this 'r' (the |
||
""" | ||
Assign new columns to a DataFrame, returning a new object | ||
(a copy) with all the original columns in addition to the new ones. | ||
|
||
|
@@ -5402,7 +5404,6 @@ def round(self, decimals=0, *args, **kwargs): | |
-------- | ||
numpy.around | ||
Series.round | ||
|
||
""" | ||
from pandas.core.reshape.concat import concat | ||
|
||
|
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.
Shouldn't need periods at the end of bullet points