Skip to content

Replaced xrange with range #30417

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 23, 2019
Merged

Conversation

ShaharNaveh
Copy link
Member

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

@@ -585,10 +585,6 @@ def test_strange_column_corruption_issue(self):
df = DataFrame(index=[0, 1])
df[0] = np.nan
wasCol = {}
# uncommenting these makes the results match
# for col in xrange(100, 200):
Copy link
Member Author

@ShaharNaveh ShaharNaveh Dec 22, 2019

Choose a reason for hiding this comment

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

This code block is sitting commented for over 4 years. thtat's the only reason I deleted it all. and not just changed the xrange to range

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.

Looks good. Any idea why xrange even worked in the pyx file? I would presume ot should fail when we`re on a python3 code base.

@topper-123 topper-123 added this to the 1.0 milestone Dec 23, 2019
@jbrockmendel
Copy link
Member

LGTM

@WillAyd WillAyd merged commit fe971f6 into pandas-dev:master Dec 23, 2019
@WillAyd
Copy link
Member

WillAyd commented Dec 23, 2019

Nice - thanks @MomIsBestFriend

@ShaharNaveh ShaharNaveh deleted the CLN-remove-xrange branch December 23, 2019 08:43
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants