-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: changed .format to f-string in pandas/core/indexes #30273
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: changed .format to f-string in pandas/core/indexes #30273
Conversation
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 @makeajourney for the PR. generally lgtm.
|
||
# return self._shallow_copy(closed=closed) |
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.
is there a reason to remove this comment?
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.
No. I put it back as it was placed.
pandas/core/indexes/period.py
Outdated
list(set(fields) - valid_field_set)[0] | ||
) | ||
"__new__() got an unexpected keyword argument " | ||
f"{list(set(fields) - valid_field_set)[0]}" |
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.
could do this outside f-space.
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.
separated that line with the new variable.
Thanks, @makeajourney . Welcome to take more of these. |
towards #29547
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff