Skip to content

nanops pep8 fixes #7461

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
Jun 17, 2014
Merged

nanops pep8 fixes #7461

merged 1 commit into from
Jun 17, 2014

Conversation

toddrjen
Copy link
Contributor

Very minor pep8 fixes for nanops. This brings nanops into pep8 compliance.

if dtype.kind == 'i' and not issubclass(
dtype.type, (np.bool, np.datetime64, np.timedelta64)):
if dtype.kind == 'i' and not issubclass(dtype.type, (np.bool,
np.datetime64,
Copy link
Contributor

Choose a reason for hiding this comment

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

u can use com.is_integer_dtype here (if u can replace anything else with the com.is_ functions would be gr8)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do a separate code cleanup in another pull request, but for triaging purposes I think it would be best to restrict this pull request to only stylistic (non-functional) changes. Ideally changes like you suggested should not have an affect, but they still alter the code paths to some degree so I think they should be kept separate.

@jreback jreback added the PEP8 label Jun 14, 2014
@jreback jreback added this to the 0.14.1 milestone Jun 14, 2014
jreback added a commit that referenced this pull request Jun 17, 2014
@jreback jreback merged commit f1c5386 into pandas-dev:master Jun 17, 2014
@jreback
Copy link
Contributor

jreback commented Jun 17, 2014

@toddrjen ok...if you would do a pr for those items discussed above would be great

@toddrjen toddrjen deleted the pep8 branch June 26, 2014 10:29
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.

2 participants