Skip to content

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

Merged

Conversation

makeajourney
Copy link
Contributor

towards #29547

  • closes
  • tests passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

Copy link
Member

@simonjayhawkins simonjayhawkins left a 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)
Copy link
Member

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?

Copy link
Contributor Author

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.

list(set(fields) - valid_field_set)[0]
)
"__new__() got an unexpected keyword argument "
f"{list(set(fields) - valid_field_set)[0]}"
Copy link
Member

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.

Copy link
Contributor Author

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.

@simonjayhawkins simonjayhawkins added the Code Style Code style, linting, code_checks label Dec 14, 2019
@simonjayhawkins simonjayhawkins added this to the 1.0 milestone Dec 14, 2019
@topper-123 topper-123 merged commit 04fce81 into pandas-dev:master Dec 15, 2019
@topper-123
Copy link
Contributor

Thanks, @makeajourney . Welcome to take more of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants