Skip to content

CLN: Some code cleanups #32176

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
Feb 22, 2020
Merged

CLN: Some code cleanups #32176

merged 1 commit into from
Feb 22, 2020

Conversation

ShaharNaveh
Copy link
Member

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

@ShaharNaveh ShaharNaveh reopened this Feb 22, 2020
@jreback jreback added Clean Code Style Code style, linting, code_checks labels Feb 22, 2020
@jreback jreback added this to the 1.1 milestone Feb 22, 2020
@jreback jreback merged commit 25443f0 into pandas-dev:master Feb 22, 2020
@jreback
Copy link
Contributor

jreback commented Feb 22, 2020

thanks @MomIsBestFriend


cdef dict timedelta_abbrevs = {
"Y": "Y",
"y": "Y",
Copy link
Member

Choose a reason for hiding this comment

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

@MomIsBestFriend possible follow-up: Y, y, M are not actually supported anymore

"""
Replace the values in the array with 'replacement' if
they are 'nan_rep'. Return the same array.
"""
cdef:
Py_ssize_t length = len(arr), i = 0

if replace is None:
replace = np.nan

Copy link
Member

Choose a reason for hiding this comment

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

this changes behavior if the user passes None here. Do we care about that?

@ShaharNaveh ShaharNaveh deleted the CLN-libs-1 branch February 29, 2020 10:27
roberthdevries pushed a commit to roberthdevries/pandas that referenced this pull request Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants