-
Notifications
You must be signed in to change notification settings - Fork 176
chore: use __getitem__ less internally
#2390
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 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -854,7 +854,7 @@ def mode(self: Self) -> ArrowSeries: | |||||||||||||||||
| return counts.filter( | ||||||||||||||||||
| plx.col(col_token) | ||||||||||||||||||
| == plx.col(col_token).max().broadcast(kind=ExprKind.AGGREGATION) | ||||||||||||||||||
| )[self.name] | ||||||||||||||||||
| ).get_column(self.name) | ||||||||||||||||||
|
Comment on lines
854
to
+857
Member
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.
Suggested change
Member
Author
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. π ah sorry, i jumped the gun yeah much nicer this way π
Member
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. No worries π |
||||||||||||||||||
|
|
||||||||||||||||||
| def is_finite(self: Self) -> Self: | ||||||||||||||||||
| return self._with_native(pc.is_finite(self.native)) | ||||||||||||||||||
|
|
||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
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.
Note
(To self) Add support for this in the stubs
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.
π
pc.sort_indicesΒ zen-xu/pyarrow-stubs#216