-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: define list accessor for bigframes Series #946
Conversation
@@ -161,6 +162,10 @@ def query_job(self) -> Optional[bigquery.QueryJob]: | |||
def struct(self) -> structs.StructAccessor: | |||
return structs.StructAccessor(self._block) | |||
|
|||
@property | |||
def list(self) -> lists.ListAccessor: |
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.
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.
Also, please add the new accessor to docs/reference/bigframes.pandas/series.rst
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.
Change updated. PTAL!
ff86afd
to
a7442f3
Compare
""" | ||
|
||
def len(self): | ||
""" |
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.
It looks like the doc format could be aligned with Google's style. Could you take another look at the formatting in StringMethod.str()
?
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.
Good call. I was not aware that the formats are different. Updated.
|
||
See Also | ||
-------- | ||
str.len : Python built-in function returning the length of an object. |
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.
Also, please review the See also
format in Series.case_when
. Of the listed APIs, StringMethods.len
seems most relevant to our current implementation. Maybe we can just keep this one and remove other two?
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.
Done
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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.
Thanks!
No description provided.