-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Replace .format with f-strings #31627
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
leandermaben
commented
Feb 3, 2020
•
edited
Loading
edited
- solves few cases of Replace old string formatting syntax with f-strings #29547
Hello @leandermaben! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-02-04 17:30:48 UTC |
pandas/util/_print_versions.py
Outdated
print("\nINSTALLED VERSIONS") | ||
print("------------------") | ||
for k, stat in sys_info: | ||
print(tpl.format(k=k, stat=stat)) | ||
print(f"{k}:<{maxlen}: {stat}") |
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.
Does this print the same as previous? Previous output has extra {}?
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.
Hi
I looked into it changed it.
This is my first time contributing so thanks for the feedback.
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.
Minor comments