Skip to content

STY: Underscores for long numbers #30397

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
merged 1 commit into from
Dec 22, 2019

Conversation

ShaharNaveh
Copy link
Member

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

Copy link
Contributor

@topper-123 topper-123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A single issue, else good.

[
946_688_461_000_000_000 / 1_000_000_000.0 + 0.5,
dict(unit="s", us=500000),
],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO these don't improve legibility compared to the old ones. I'd prefer the old way to keep a single line per parameter.

@ShaharNaveh ShaharNaveh force-pushed the STY-tests-underscores branch from 01fc0b5 to baef48d Compare December 22, 2019 12:16
@pep8speaks
Copy link

pep8speaks commented Dec 22, 2019

Hello @MomIsBestFriend! 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 2019-12-22 12:18:12 UTC

@ShaharNaveh ShaharNaveh force-pushed the STY-tests-underscores branch from baef48d to 0d7540b Compare December 22, 2019 12:18
@topper-123 topper-123 added this to the 1.0 milestone Dec 22, 2019
@topper-123 topper-123 merged commit a2bbdb5 into pandas-dev:master Dec 22, 2019
@topper-123
Copy link
Contributor

Thanks, @MomIsBestFriend

@topper-123 topper-123 added Code Style Code style, linting, code_checks and removed Clean labels Dec 22, 2019
@ShaharNaveh ShaharNaveh deleted the STY-tests-underscores branch December 22, 2019 21:12
AlexKirko pushed a commit to AlexKirko/pandas that referenced this pull request Dec 29, 2019
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