Skip to content

CLN/STY: Nitpicks #32961

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 2 commits into from
Mar 26, 2020
Merged

CLN/STY: Nitpicks #32961

merged 2 commits into from
Mar 26, 2020

Conversation

ShaharNaveh
Copy link
Member

@ShaharNaveh ShaharNaveh commented Mar 23, 2020

Things I find myself doing in multiple branches

Things I find myself doing in multiple branches
@@ -454,7 +463,7 @@ cdef class DatetimeEngine(Int64Engine):

cdef class TimedeltaEngine(DatetimeEngine):

cdef _get_box_dtype(self):
cdef str _get_box_dtype(self):
return 'm8[ns]'
Copy link
Member

Choose a reason for hiding this comment

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

not gonna change to double-quotes while you're here?

@jbrockmendel
Copy link
Member

Looks fine.

Brainstorming ideas for expanding the range of what you work on: when editing a file, consider searching for TODO/FIXME comments and seeing if any of them are things you can address. (best case is right at the edge of what you're comfortable with). E.g. there is one TODO in index.pyx that looks doable.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm

@WillAyd WillAyd added the Code Style Code style, linting, code_checks label Mar 24, 2020
def rank_1d(
rank_t[:] in_arr,
ties_method="average",
bint ascending=True,
Copy link
Member Author

Choose a reason for hiding this comment

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

Added bint

ties_method="average",
bint ascending=True,
na_option="keep",
bint pct=False,
Copy link
Member Author

Choose a reason for hiding this comment

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

Added bint

ascending=True, na_option='keep', pct=False):
def rank_2d(
rank_t[:, :] in_arr,
int axis=0,
Copy link
Member Author

Choose a reason for hiding this comment

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

added int

rank_t[:, :] in_arr,
int axis=0,
ties_method="average",
bint ascending=True,
Copy link
Member Author

Choose a reason for hiding this comment

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

added bint

ties_method="average",
bint ascending=True,
na_option="keep",
bint pct=False,
Copy link
Member Author

Choose a reason for hiding this comment

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

added bint

@ShaharNaveh
Copy link
Member Author

I forgot to mention the changes I've made which are not related to styling.

@jbrockmendel @WillAyd Can you please re-review?

@jorisvandenbossche
Copy link
Member

Personally, I would stop doing such styling changes to cython (to resemble what black does) until there is black support for cython at which point we can do it in one go and consistently.

@ShaharNaveh
Copy link
Member Author

Personally, I would stop doing such styling changes to cython (to resemble what black does) until there is black support for cython at which point we can do it in one go and consistently.

Noted.

@jreback jreback added this to the 1.1 milestone Mar 26, 2020
@jreback jreback merged commit aeb9040 into pandas-dev:master Mar 26, 2020
@jreback
Copy link
Contributor

jreback commented Mar 26, 2020

thanks @MomIsBestFriend

yeah let's hold off on cython changes for style until we have an auto formatter, however typing / fixing things are all ok.

@ShaharNaveh ShaharNaveh deleted the OCD-_libs branch March 26, 2020 01:13
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.

5 participants