Skip to content

CLN: assorted cleanups #27301

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 12 commits into from
Jul 9, 2019
Merged

CLN: assorted cleanups #27301

merged 12 commits into from
Jul 9, 2019

Conversation

jbrockmendel
Copy link
Member

broken off from other branches

@@ -584,6 +584,7 @@ def convert(self, **kwargs):
return self.apply("convert", **kwargs)

def replace(self, **kwargs):
assert "value" in kwargs and np.ndim(kwargs["value"]) == 0
Copy link
Member

Choose a reason for hiding this comment

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

Does adding this to the signature explicitly not work?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it does, but the pattern for the other self.aply usages here is just to have kwargs. I'm OK either way

Copy link
Member

Choose a reason for hiding this comment

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

Yea I think signature would be better if required

Copy link
Member Author

Choose a reason for hiding this comment

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

changed

@@ -411,7 +411,7 @@ def check_single_invert_op(self, lhs, cmp1, rhs):
)

def check_compound_invert_op(self, lhs, cmp1, rhs):
skip_these = "in", "not in"
skip_these = ["in", "not in"]
Copy link
Member

Choose a reason for hiding this comment

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

Maybe make a tuple for consistency with old code?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just used for an inclusion check; either way works.

@WillAyd WillAyd added the Clean label Jul 9, 2019
@jreback jreback added this to the 0.25.0 milestone Jul 9, 2019
@jreback jreback merged commit 8efbe12 into pandas-dev:master Jul 9, 2019
@jreback
Copy link
Contributor

jreback commented Jul 9, 2019

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the moar branch July 10, 2019 00:04
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.

3 participants