-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
STY: concat strings that should not be seperated #30942
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
STY: concat strings that should not be seperated #30942
Conversation
pandas/_libs/window/aggregations.pyx
Outdated
@@ -1491,8 +1491,7 @@ cdef ndarray[float64_t] _roll_weighted_sum_mean(float64_t[:] values, | |||
tot_wgt = np.zeros(in_n, dtype=np.float64) | |||
|
|||
if minp > win_n: | |||
raise ValueError(f"min_periods (minp) must be <= " | |||
f"window (win)") | |||
raise ValueError(f"min_periods {minp} must be <= window {win_n}") |
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.
The f
did nothing before. should I revert and just delete the f
?
or leave it as it is?
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 leave the message unchanged unless obvious improvement and then should add a brief note in whatsnew that message has been changed.
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 I'll just delete this f
because it didn't do anything anyway.
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 @MomIsBestFriend ltgm however probably best in general to leave cython files untouched and wait for black to support formatting cython.
pandas/_libs/window/aggregations.pyx
Outdated
@@ -1491,8 +1491,7 @@ cdef ndarray[float64_t] _roll_weighted_sum_mean(float64_t[:] values, | |||
tot_wgt = np.zeros(in_n, dtype=np.float64) | |||
|
|||
if minp > win_n: | |||
raise ValueError(f"min_periods (minp) must be <= " | |||
f"window (win)") | |||
raise ValueError(f"min_periods {minp} must be <= window {win_n}") |
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 leave the message unchanged unless obvious improvement and then should add a brief note in whatsnew that message has been changed.
Co-Authored-By: Simon Hawkins <[email protected]>
@simonjayhawkins should I close this PR then? |
I think OK to merge this once the changed message #30942 (comment) is reverted |
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
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 @MomIsBestFriend lgtm. ping on green.
ping @simonjayhawkins |
Thanks @MomIsBestFriend |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff