-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Added docstring for show_versions() #33073
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
Conversation
@TomAugspurger, connected with issue #33044 |
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.
Thanks! Can you run scripts/validate_docstrings.py
on this? I don't think we need any of the other sections, just the Parameters.
You can also add it to the API docs. Probably in doc/source/reference/general_utility_functions.rst
.
pandas/util/_print_versions.py
Outdated
Returns | ||
------- | ||
None |
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 think this section can be omitted when there's no return value.
pandas/util/_print_versions.py
Outdated
@@ -88,6 +88,22 @@ def _get_dependency_info() -> Dict[str, JSONSerializable]: | |||
|
|||
|
|||
def show_versions(as_json: Union[str, bool] = False) -> None: | |||
""" | |||
Provides information about hosting operation system, pandas version, |
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.
Needs to be a single line.
You can ignore the CI failure. |
@MarianD Can you please merge master? |
@MomIsBestFriend
I merged my “docstring” branch into “master” in my fork and created pull request for that branch (master) — is it what you expected? |
@MarianD sorry this is not what I expected, but it's perfectly fine. I should have been more specific, what I meant was "please update your pull request" https://dev.pandas.io/docs/development/contributing.html#updating-your-pull-request This is necessary due to a failure we had in our CI (continues interrogation), and updating your PR (pull request) would solve this. |
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.
Looks like there's a linting issue: https://github.com/pandas-dev/pandas/pull/33073/checks?check_run_id=543334674#step:10:9
@@ -30,6 +30,13 @@ Testing functions | |||
testing.assert_index_equal | |||
testing.assert_extension_array_equal | |||
|
|||
Bug report function |
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'd put this at the bottom of this file.
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.
@TomAugspurger, I did it.
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.
lgtm, thanks @MarianD
ping @TomAugspurger
Thanks! |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff