-
-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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 18 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 |
|---|---|---|
|
|
@@ -288,10 +288,13 @@ def unique(values): | |
|
|
||
| Returns | ||
| ------- | ||
| unique values. | ||
| If the input is an Index, the return is an Index | ||
| If the input is a Categorical dtype, the return is a Categorical | ||
| If the input is a Series/ndarray, the return will be an ndarray | ||
| unique values | ||
|
||
|
|
||
| The return can be: | ||
|
|
||
| - If the input is an Index, the return is an Index. | ||
| - If the input is a Categorical dtype, the return is a Categorical. | ||
| - If the input is a Series/ndarray, the return will be an ndarray. | ||
|
||
|
|
||
| See Also | ||
| -------- | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1292,7 +1292,7 @@ def __array__(self, dtype=None): | |||||
| values : numpy array | ||||||
|
||||||
| values : numpy array | |
| numpy.array |
Outdated
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.
| values : numpy array | |
| numpy.array |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1145,7 +1145,7 @@ def to_numpy(self, dtype=None, copy=False): | |||||
|
|
||||||
| Returns | ||||||
| ------- | ||||||
| array : numpy.ndarray | ||||||
| numpy.ndarray | ||||||
|
|
||||||
| See Also | ||||||
| -------- | ||||||
|
|
@@ -1439,7 +1439,7 @@ def from_records(cls, data, index=None, exclude=None, columns=None, | |||||
|
|
||||||
| Returns | ||||||
| ------- | ||||||
| df : DataFrame | ||||||
| DataFrame | ||||||
| """ | ||||||
|
|
||||||
| # Make a copy of the input columns so we can modify it | ||||||
|
|
@@ -1755,7 +1755,7 @@ def from_items(cls, items, columns=None, orient='columns'): | |||||
|
|
||||||
| Returns | ||||||
| ------- | ||||||
| frame : DataFrame | ||||||
| DataFrame | ||||||
| """ | ||||||
|
|
||||||
| warnings.warn("from_items is deprecated. Please use " | ||||||
|
|
@@ -1866,7 +1866,7 @@ def from_csv(cls, path, header=0, sep=',', index_col=0, parse_dates=True, | |||||
|
|
||||||
| Returns | ||||||
| ------- | ||||||
| y : DataFrame | ||||||
| DataFrame | ||||||
|
|
||||||
| See Also | ||||||
| -------- | ||||||
|
|
@@ -1956,7 +1956,7 @@ def to_panel(self): | |||||
|
|
||||||
| Returns | ||||||
| ------- | ||||||
| panel : Panel | ||||||
| Panel | ||||||
| """ | ||||||
| raise NotImplementedError("Panel is being removed in pandas 0.25.0.") | ||||||
|
|
||||||
|
|
@@ -2478,7 +2478,7 @@ def memory_usage(self, index=True, deep=False): | |||||
|
|
||||||
| Returns | ||||||
| ------- | ||||||
| sizes : Series | ||||||
| Series | ||||||
| A Series whose index is the original column names and whose values | ||||||
| is the memory usage of each column in bytes. | ||||||
|
|
||||||
|
|
@@ -2696,7 +2696,7 @@ def get_value(self, index, col, takeable=False): | |||||
|
|
||||||
| Returns | ||||||
| ------- | ||||||
| value : scalar value | ||||||
| scalar value | ||||||
|
||||||
| scalar value | |
| scalar |
Outdated
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.
| numpy-array | |
| numpy.array |
Outdated
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.
| pandas.DataFrame | |
| DataFrame |
Outdated
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 replace this by the Python type? I guess DataFrame, but better check the code
Outdated
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.
| DataFrame or Series | |
| Series or DataFrame |
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 leave just DataFrame and explain about DatetimeIndex in the description
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.
I guess this returns a DataFrame, please check it and leave that as the type. And explain that it's a time series... in the description.
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.
Was there a reason for removing
PR10here or just mistake?Uh oh!
There was an error while loading. Please reload this page.
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.
It is just a mistake from merge.Uh oh!
There was an error while loading. Please reload this page.
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.
PR10is actually not included in the current check at line 245. So I wasn't sure someone excludePR10but forgot to remove from the message.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.
Good catch. I think this was just missed in #25109 so makes sense to update here accordingly
Uh oh!
There was an error while loading. Please reload this page.
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.
PR10 is not passing the check withUpdate pandas.ExcelWriter.. versionadded:: 0.24.. I am going to leave PR10 for now.