-
Notifications
You must be signed in to change notification settings - Fork 73
filter kdocs #1288
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
filter kdocs #1288
Conversation
Deprecated |
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.
Great! just some small notes, as usual :)
* | ||
* See also: | ||
* - [drop][DataFrame.drop], which drops rows based on values within the row. | ||
* - [distinct][DataFrame.distinct], which filters rows with duplicated values. |
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.
*filters out? If you say "filters", it could also mean that you only keep rows with duplicate values.
* | ||
* See also: [filter], which allows filtering rows based on values within the row. | ||
* | ||
* ### This Gather Overload |
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.
Gather overload? ;P
@@ -110,6 +110,9 @@ internal const val CONVERT_TO_URL_REPLACE = "convertToUrl()" | |||
internal const val TO_URL = "This function is replaced by `toUrl()`. $MESSAGE_1_0" | |||
internal const val TO_URL_REPLACE = "toUrl()" | |||
|
|||
internal const val FILTER_BY = "This function is deprecated in favor of `filter { }`. $MESSAGE_1_0" |
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.
double spaces
@@ -110,6 +110,9 @@ internal const val CONVERT_TO_URL_REPLACE = "convertToUrl()" | |||
internal const val TO_URL = "This function is replaced by `toUrl()`. $MESSAGE_1_0" | |||
internal const val TO_URL_REPLACE = "toUrl()" | |||
|
|||
internal const val FILTER_BY = "This function is deprecated in favor of `filter { }`. $MESSAGE_1_0" | |||
internal const val FILTER_BY_REPLACE = "filter { column }" |
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'm not sure whether the ReplaceWith can fully handle this transition... in filterBy { column }
, column is a ColumnAccessor<T>
, in filter { column }
, it's a value T
. But let's keep it like this, the user can probably figure it out.
@ExcludeFromSources | ||
internal interface FilterByDocs | ||
|
||
/** |
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.
probably don't need kdocs for this if we're gonna deprecate it, right?
Closes #1278