-
Notifications
You must be signed in to change notification settings - Fork 36
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
Implement <DataFrame>$flags
and improve <Series>$flags
#809
Conversation
Sorry, it is the Python world that calls such things "attributes", and here (in R) "active bindings" was appropriate. |
#' - `SORTED_DESC` is similar but applies to sort in decreasing order. | ||
#' | ||
#' @details Check out the source code in | ||
#' [R/dataframe_frame.R](https://github.com/pola-rs/r-polars/blob/main/R/dataframe__frame.R) |
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.
I don't think such things should be placed here (they should be in the developer's documentation), but since they are irrelevant to this PR, I'll leave them alone.
R/dataframe__frame.R
Outdated
@@ -74,6 +94,15 @@ | |||
NULL | |||
|
|||
|
|||
DataFrame_flags = method_as_property(function() { | |||
out = lapply(self$columns, \(x) { | |||
self[x]$to_series()$flags |
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.
to_series()
is needed here?
How about self[, x]
?
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.
How about self[, x]?
Yes that's simpler, good catch
One issue here is that I'm actually not sure what the
"FAST_EXPLODE"
actually means (which is why I didn't explain in the docs)