@@ -58,7 +58,7 @@ public inline fun <T> DataColumn<T>.filter(predicate: Predicate<T>): DataColumn<
58
58
*
59
59
* See also:
60
60
* - [drop][DataFrame.drop], which drops rows based on values within the row.
61
- * - [distinct][DataFrame.distinct], which filters rows with duplicated values.
61
+ * - [distinct][DataFrame.distinct], which filters out rows with duplicated values.
62
62
*
63
63
* ### Example
64
64
* ```kotlin
@@ -77,57 +77,10 @@ public inline fun <T> DataFrame<T>.filter(predicate: RowFilter<T>): DataFrame<T>
77
77
predicate(row, row)
78
78
}.let { get(it) }
79
79
80
- /* *
81
- * Filters the rows of this [DataFrame] based on the [Boolean] values in the specified [column].
82
- *
83
- * Returns a new [DataFrame] containing only the rows where the value in the given [column] is `true`.
84
- *
85
- * @include [SelectingColumns.ColumnGroupsAndNestedColumnsMention]
86
- *
87
- * For more information, see: {@include [DocumentationUrls.Filter]}
88
- *
89
- * See also: [filter], which allows filtering rows based on values within the row.
90
- *
91
- * ### This Gather Overload
92
- */
93
- @ExcludeFromSources
94
- internal interface FilterByDocs
95
-
96
- /* *
97
- * {@include [FilterByDocs]}
98
- * {@include [SelectingColumns.Dsl]}
99
- *
100
- * ### Examples
101
- * ```kotlin
102
- * // Filter rows by the "isHappy" column
103
- * df.filterBy { isHappy }
104
- *
105
- * // Filter rows by a single `Boolean` column
106
- * df.filterBy { colsOf<Boolean>().single() }
107
- * ```
108
- *
109
- * @param column A [ColumnSelector] that selects the Boolean column to use for filtering.
110
- * Only rows where the value in this column is `true` will be included.
111
- * @return A new [DataFrame] containing only the rows where the selected column is `true`.
112
- */
113
80
@Deprecated(message = FILTER_BY , replaceWith = ReplaceWith (FILTER_BY_REPLACE ), level = DeprecationLevel .ERROR )
114
81
public fun <T > DataFrame<T>.filterBy (column : ColumnSelector <T , Boolean >): DataFrame <T > =
115
82
getRows(getColumn(column).toList().getTrueIndices())
116
83
117
- /* *
118
- * {@include [FilterByDocs]}
119
- * {@include [SelectingColumns.ColumnNames]}
120
- *
121
- * ### Example
122
- * ```kotlin
123
- * // Filter rows by the "isHappy" column
124
- * df.filterBy("isHappy")
125
- * ```
126
- *
127
- * @param column The name of the `Boolean` column to use for filtering.
128
- * Only rows where the value in this column is `true` will be included.
129
- * @return A new [DataFrame] containing only the rows where the specified column is `true`.
130
- */
131
84
@Suppress(" DEPRECATION_ERROR" )
132
85
@Deprecated(message = FILTER_BY , replaceWith = ReplaceWith (FILTER_BY_REPLACE ), level = DeprecationLevel .ERROR )
133
86
public fun <T > DataFrame<T>.filterBy (column : String ): DataFrame <T > = filterBy { column.toColumnOf() }
0 commit comments