-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
CLN: Update .format(...) strings to f-expressions #29571
Conversation
Thanks - please link the issue #29547 |
CI failures related to black
Please run |
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 for working on this @srinivasreddy. Please run black asv_bench/benchmarks/gil.py
and push the changes, so the CI is green and we can merge.
Also, avoid unrelated changes if they are not coming from black.
asv_bench/benchmarks/gil.py
Outdated
"foo", | ||
index=range(rows), | ||
columns=["object%03d".format(i) for i in range(5)], | ||
"foo", index=range(rows), columns=[f"object%03d" for i in range(5)], |
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
was ignored, no need for an f-string here I think
pandas/core/algorithms.py
Outdated
@@ -1159,7 +1159,7 @@ def compute(self, method): | |||
n = min(n, narr) | |||
|
|||
kth_val = algos.kth_smallest(arr.copy(), n - 1) | |||
ns, = np.nonzero(arr <= kth_val) | |||
(ns,) = np.nonzero(arr <= kth_val) |
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 is from black. Can you use the version in environment.yml
(conda install black<=19.3b0
), so no unrelated changes are applied.
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 for working on this @srinivasreddy
thanks @srinivasreddy |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff