Skip to content

CLN: Unused varables pt2 #22115

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
Jul 30, 2018
Merged

Conversation

mroeschke
Copy link
Member

  • passes git diff upstream/master -u -- "*.py" | flake8 --diff

xref #21986

Remove more unused variables including ones that were marked in TODOs as unused.

@@ -305,7 +305,6 @@ def _hash_categories(categories, ordered=True):
# everything to a str first, which means we treat
# {'1', '2'} the same as {'1', 2}
# find a better solution
cat_array = np.array([hash(x) for x in categories])
Copy link
Contributor

Choose a reason for hiding this comment

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

iirc this is a check that the categories can be hashed but i think we now check this on construction

@mroeschke
Copy link
Member Author

All looks good besides a travis build that had connection issues.

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

merge away

@jreback jreback added this to the 0.24.0 milestone Jul 30, 2018
@jreback jreback merged commit cf14366 into pandas-dev:master Jul 30, 2018
@jreback
Copy link
Contributor

jreback commented Jul 30, 2018

thanks!

@mroeschke mroeschke deleted the remove_variables_2 branch July 30, 2018 15:21
dberenbaum pushed a commit to dberenbaum/pandas that referenced this pull request Aug 3, 2018
Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this pull request Oct 1, 2018
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.

2 participants