-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fix PR10 error and Clean up docstrings from functions related to RT05 errors #25132
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 30 commits
2c4455c
c87102f
d552569
03aaa92
36a610a
c2e24b3
f5cfc8a
6e658f8
5304b9c
7601aed
128dadb
3d3e408
522e76d
163e9e3
b55b270
ba4f001
25e7503
1824b99
1262632
e12ee2a
bfe30f8
d5d270b
6ac909b
4e4f24a
283861f
953159c
15fde16
94e5279
39ab010
64bd51b
7051e3c
a35f869
b847e4e
2d62018
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 |
---|---|---|
|
@@ -4949,10 +4949,14 @@ def pipe(self, func, *args, **kwargs): | |
Returns | ||
------- | ||
DataFrame, Series or scalar | ||
If DataFrame.agg is called with a single function, returns a Series | ||
If DataFrame.agg is called with several functions, returns a DataFrame | ||
If Series.agg is called with single function, returns a scalar | ||
If Series.agg is called with several functions, returns a Series. | ||
|
||
The return can be: | ||
|
||
- If DataFrame.agg is called with a single function, returns a Series. | ||
thoo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- If DataFrame.agg is called with several functions, returns | ||
a DataFrame. | ||
- If Series.agg is called with single function, returns a scalar. | ||
- If Series.agg is called with several functions, returns a Series. | ||
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. Let's do the same thing you are doing below, where instead of putting periods at the end of each bullet you end with a short sentence after the bullets |
||
|
||
%(see_also)s | ||
|
||
|
@@ -6879,11 +6883,14 @@ def asof(self, where, subset=None): | |
------- | ||
scalar, Series, or DataFrame | ||
|
||
Scalar : when `self` is a Series and `where` is a scalar. | ||
Series: when `self` is a Series and `where` is an array-like, | ||
or when `self` is a DataFrame and `where` is a scalar. | ||
DataFrame : when `self` is a DataFrame and `where` is an | ||
array-like. | ||
The return can be: | ||
|
||
* Scalar : when `self` is a Series and `where` is a scalar | ||
* Series: when `self` is a Series and `where` is an array-like, | ||
or when `self` is a DataFrame and `where` is a scalar | ||
* DataFrame : when `self` is a DataFrame and `where` is an | ||
array-like | ||
Return scalar, Sereis, or DataFrame. | ||
WillAyd marked this conversation as resolved.
Show resolved
Hide resolved
WillAyd marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
See Also | ||
-------- | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1442,7 +1442,7 @@ def sortlevel(self, level=None, ascending=True, sort_remaining=None): | |
|
||
Returns | ||
------- | ||
sorted_index : Index | ||
Index | ||
""" | ||
return self.sort_values(return_indexer=True, ascending=ascending) | ||
|
||
|
@@ -1460,7 +1460,7 @@ def _get_level_values(self, level): | |
|
||
Returns | ||
------- | ||
values : Index | ||
Index | ||
Calling object, as there is only one level in the Index. | ||
|
||
See Also | ||
|
@@ -1505,7 +1505,7 @@ def droplevel(self, level=0): | |
|
||
Returns | ||
------- | ||
index : Index or MultiIndex | ||
Index or MultiIndex | ||
""" | ||
if not isinstance(level, (tuple, list)): | ||
level = [level] | ||
|
@@ -1557,11 +1557,11 @@ def droplevel(self, level=0): | |
Returns | ||
------- | ||
grouper : Index | ||
Index of values to group on | ||
Index of values to group on. | ||
labels : ndarray of int or None | ||
Array of locations in level_index | ||
Array of locations in level_index. | ||
uniques : Index or None | ||
Index of unique values for level | ||
Index of unique values for level. | ||
""" | ||
|
||
@Appender(_index_shared_docs['_get_grouper_for_level']) | ||
|
@@ -2971,9 +2971,9 @@ def _convert_listlike_indexer(self, keyarr, kind=None): | |
|
||
Returns | ||
------- | ||
tuple (indexer, keyarr) | ||
indexer, keyarr | ||
indexer is an ndarray or None if cannot convert | ||
keyarr are tuple-safe keys | ||
keyarr are tuple-safe keys. | ||
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. do you mind documenting both parameters separately? It's done in other parts of this PR |
||
""" | ||
if isinstance(keyarr, Index): | ||
keyarr = self._convert_index_indexer(keyarr) | ||
|
@@ -3157,9 +3157,9 @@ def _reindex_non_unique(self, target): | |
Returns | ||
------- | ||
new_index : pd.Index | ||
Resulting index | ||
Resulting index. | ||
indexer : np.ndarray or None | ||
Indices of output values in original index | ||
Indices of output values in original index. | ||
|
||
""" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -508,9 +508,7 @@ class ExcelWriter(object): | |
Format string for datetime objects written into Excel files | ||
(e.g. 'YYYY-MM-DD HH:MM:SS') | ||
mode : {'w' or 'a'}, default 'w' | ||
File mode to use (write or append). | ||
.. versionadded:: 0.24.0 | ||
File mode to use (write or append). .. versionadded:: 0.24.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. is there a reason for this? Not sure if this will render correctly in the html 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. Yeah, that's right. I was about to fix it. |
||
Attributes | ||
---------- | ||
|
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.
Same comment here around periods for bullet points