-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Fix quotes position in pandas.core (#24071) #26037
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,7 +172,7 @@ class providing the base-class of operations. | |
{examples} | ||
""") | ||
|
||
_pipe_template = """\ | ||
_pipe_template = """ | ||
Apply a function `func` with arguments to this %(klass)s object and return | ||
the function's result. | ||
|
||
|
@@ -557,7 +557,8 @@ def __getattr__(self, attr): | |
B | ||
A | ||
a 2 | ||
b 2""") | ||
b 2 | ||
""") | ||
@Appender(_pipe_template) | ||
def pipe(self, func, *args, **kwargs): | ||
return com._pipe(self, func, *args, **kwargs) | ||
|
@@ -1257,11 +1258,13 @@ def groupby_function(name, alias, npfunc, | |
numeric_only=True, _convert=False, | ||
min_count=-1): | ||
|
||
_local_template = "Compute %(f)s of group values" | ||
_local_template = """ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar comment here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call, this one is problematic and is leading to |
||
Compute %(f)s of group values | ||
""" | ||
|
||
@Substitution(name='groupby', f=name) | ||
@Appender(_common_see_also) | ||
@Appender(_local_template) | ||
@Appender(_local_template, join='\n') | ||
def f(self, **kwargs): | ||
if 'numeric_only' not in kwargs: | ||
kwargs['numeric_only'] = numeric_only | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you build the doc for pipe here to make sure this is OK? Just want to be sure that removing the continuation doesn't impact expected indentation during substitution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one seems OK.