Skip to content

CLN: Removed outdated comment #30782

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
Jan 7, 2020

Conversation

ShaharNaveh
Copy link
Member

@ShaharNaveh ShaharNaveh commented Jan 7, 2020

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

I think this is a bit outdated, since we are using black and it's doing the work for us, right?

according to git blame, this is 2 years old.

@@ -147,8 +147,6 @@ def test_categorical_repr_datetime(self):
idx = date_range("2011-01-01 09:00", freq="H", periods=5)
c = Categorical(idx)

# TODO(wesm): exceeding 80 characters in the console is not good
# behavior
Copy link
Member

Choose a reason for hiding this comment

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

is this referring to the code or to the string being returned? black only affects the former

Copy link
Contributor

Choose a reason for hiding this comment

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

It's about the output.

In [16]: idx = pd.CategoricalIndex(list(string.ascii_letters))

In [17]: [len(x) for x in repr(idx).split('\n')]
Out[17]: [77, 77, 77, 77, 38, 107]

@WillAyd WillAyd added this to the 1.0 milestone Jan 7, 2020
@WillAyd WillAyd merged commit a51a562 into pandas-dev:master Jan 7, 2020
@WillAyd
Copy link
Member

WillAyd commented Jan 7, 2020

Thanks @MomIsBestFriend

@alimcmaster1
Copy link
Member

@MomIsBestFriend - I don’t think this is referring to black.

Think it’s related to #22524

@ShaharNaveh
Copy link
Member Author

@alimcmaster1 should it be reverted then?

@ShaharNaveh ShaharNaveh deleted the CLN-wsem-comment branch January 8, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants